Skip to content

Commit

Permalink
fix(theme): add null check for current dark check (#19408)
Browse files Browse the repository at this point in the history
  • Loading branch information
webdevnerdstuff committed Mar 15, 2024
1 parent 55b86bd commit 5e07860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/composables/theme.ts
Expand Up @@ -255,7 +255,7 @@ export function createTheme (options?: ThemeOptions): ThemeInstance & { install:
const styles = computed(() => {
const lines: string[] = []

if (current.value.dark) {
if (current.value?.dark) {
createCssClass(lines, ':root', ['color-scheme: dark'])
}

Expand Down

0 comments on commit 5e07860

Please sign in to comment.