From 257f8a5a27b9ac3ee4b5e469c21559aa48a77121 Mon Sep 17 00:00:00 2001 From: Aria Moradi Date: Tue, 16 Mar 2021 16:09:20 +0330 Subject: [PATCH] fix extensions not showing the all pesudo-language --- webUI/react/src/screens/Extensions.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webUI/react/src/screens/Extensions.tsx b/webUI/react/src/screens/Extensions.tsx index 8473ac5..4eb6244 100644 --- a/webUI/react/src/screens/Extensions.tsx +++ b/webUI/react/src/screens/Extensions.tsx @@ -35,9 +35,13 @@ function groupExtensions(extensions: IExtension[]) { return result; } +function extensionDefaultLangs() { + return [...defualtLangs(), 'all']; +} + export default function Extensions() { const { setTitle, setAction } = useContext(NavbarContext); - const [shownLangs, setShownLangs] = useLocalStorage('shownExtensionLangs', defualtLangs()); + const [shownLangs, setShownLangs] = useLocalStorage('shownExtensionLangs', extensionDefaultLangs()); useEffect(() => { setTitle('Extensions');