Skip to content

Commit dad93ef

Browse files
authored
sometimes themeName is like ref but sometimes theneName is like 'string'. When I debug in browser , I find this issue.
For try you can use the combobox component
1 parent 26ee0f6 commit dad93ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/use/useTheme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function useTheme() {
1616
export function useThemeName() {
1717
const themeName = inject<ComputedRef<ThemeName>>('themeName');
1818

19-
if (!themeName || !themeName.value) {
19+
if (!themeName) {
2020
throw new Error(
2121
'No themeName was provided.'
2222
);

0 commit comments

Comments
 (0)