diff --git a/src/lib/components/common/Tab.svelte b/src/lib/components/common/Tab.svelte index 5de14d60..7cb47d29 100644 --- a/src/lib/components/common/Tab.svelte +++ b/src/lib/components/common/Tab.svelte @@ -1,4 +1,10 @@ + @@ -103,9 +107,7 @@ Assumes it's a child of a ViewerContext - {Array.from(readModeDropdownItems ?? []).find( - ([value]) => value === $mode, - )?.[1]} + {current} diff --git a/src/lib/components/viewer/Search.svelte b/src/lib/components/viewer/Search.svelte index 4521f730..3d88c13e 100644 --- a/src/lib/components/viewer/Search.svelte +++ b/src/lib/components/viewer/Search.svelte @@ -3,13 +3,14 @@ Assumes it's a child of a ViewerContext -->