diff --git a/src/lib/commandCenter/panels/template.svelte b/src/lib/commandCenter/panels/template.svelte index 22e1e3937..86f29a53b 100644 --- a/src/lib/commandCenter/panels/template.svelte +++ b/src/lib/commandCenter/panels/template.svelte @@ -106,8 +106,9 @@ } } - $: { - options; + $: if (selected > options.length - 1) { + selected = options.length - 1; + } else if (selected < 0) { selected = 0; }