Skip to content

Commit 47f15fd

Browse files
Add another null check
1 parent ddbfdd8 commit 47f15fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/plugin/composables/colors.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function checkIfThemeVarColor(color: string) {
1818
}
1919

2020
function checkIfThemeColor(color: string, theme: ThemeInstance) {
21-
const themeColors = theme.global.current.value.colors;
21+
const themeColors = theme.global.current.value?.colors ?? {};
2222

2323
return Object.entries(themeColors).find(([key]) => {
2424
return key === color;

0 commit comments

Comments
 (0)