From 8fe80629500ee4897862b1e13917ad3fe6f7d95a Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 25 Sep 2023 13:23:38 -0400 Subject: move type checking to other workflow, fix TS errors, add TSC checking --- frontend/src/components/settings/pages/general/BranchSelect.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend/src/components/settings/pages/general/BranchSelect.tsx') diff --git a/frontend/src/components/settings/pages/general/BranchSelect.tsx b/frontend/src/components/settings/pages/general/BranchSelect.tsx index 9b304f3a..1af06823 100644 --- a/frontend/src/components/settings/pages/general/BranchSelect.tsx +++ b/frontend/src/components/settings/pages/general/BranchSelect.tsx @@ -29,10 +29,10 @@ const BranchSelect: FunctionComponent<{}> = () => { typeof branch == 'string') + .filter((branch) => typeof branch == 'number') .map((branch) => ({ - label: tBranches[UpdateBranch[branch]], - data: UpdateBranch[branch], + label: tBranches[branch as number], + data: branch, }))} selectedOption={selectedBranch} onChange={async (newVal) => { -- cgit v1.2.3