From a47a937c8058eb88d95ff4a006d159ae63b08e9e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 11 Sep 2022 09:23:44 +0200 Subject: hide "warn_redirect" --- client-web/source/preferences/ui.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client-web/source/preferences/ui.ts') diff --git a/client-web/source/preferences/ui.ts b/client-web/source/preferences/ui.ts index 4b0832a..72d7792 100644 --- a/client-web/source/preferences/ui.ts +++ b/client-web/source/preferences/ui.ts @@ -6,7 +6,7 @@ export class PrefUi extends OverlayUi { constructor() { console.log(PREFS); - const rows = Object.entries(PREF_DECLS as Record>).map(([key_, decl]) => { + const rows = Object.entries(PREF_DECLS as Record>).filter(e => !e[1].hidden).map(([key_, decl]) => { const key = key_ as keyof typeof PREF_DECLS const id = `pref-${key}` let prim_control: HTMLInputElement | HTMLSelectElement | undefined; -- cgit v1.2.3-70-g09d2