mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Fix null check in theme resolver
This commit is contained in:
1 parent
c1ed6ebdba
commit
4cb12f3772
1 file changed
+1
-1
@@ -26,7 +26,7 @@
|
||||
import { feedback } from '$lib/stores/feedback';
|
||||
|
||||
function resolveTheme(theme: AppStore['themeInUse']) {
|
||||
const isEmbedded = page.route.id.includes('/(embeddings)/');
|
||||
const isEmbedded = page.route?.id?.includes('/(embeddings)/') ?? false;
|
||||
switch (theme) {
|
||||
case 'dark':
|
||||
return isEmbedded ? ThemeDarkStudio : isCloud ? ThemeDarkCloud : ThemeDark;
|
||||
|
||||
Reference in new issue
Block a user