summaryrefslogtreecommitdiff
path: root/frontend/src/components/settings/pages/general/BranchSelect.tsx
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2023-09-25 13:23:38 -0400
committermarios8543 <marios8543@gmail.com>2023-10-17 17:08:23 +0300
commit8fe80629500ee4897862b1e13917ad3fe6f7d95a (patch)
tree5482d24566193668c7ab7269b264cf2d6cfd269d /frontend/src/components/settings/pages/general/BranchSelect.tsx
parent11d731cf35de204f7ade36edeb624db265a87f06 (diff)
downloaddecky-loader-8fe80629500ee4897862b1e13917ad3fe6f7d95a.tar.gz
decky-loader-8fe80629500ee4897862b1e13917ad3fe6f7d95a.zip
move type checking to other workflow, fix TS errors, add TSC checking
Diffstat (limited to 'frontend/src/components/settings/pages/general/BranchSelect.tsx')
-rw-r--r--frontend/src/components/settings/pages/general/BranchSelect.tsx6
1 files changed, 3 insertions, 3 deletions
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<{}> = () => {
<Field label={t('BranchSelect.update_channel.label')} childrenContainerWidth={'fixed'}>
<Dropdown
rgOptions={Object.values(UpdateBranch)
- .filter((branch) => 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) => {