Skip to content

Commit 6b5898b

Browse files
authoredMar 6, 2024
fix: add non-null assertion to iconName (#133)
1 parent 0aa6fd7 commit 6b5898b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/runtime/Icon.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const state = useState<Record<string, IconifyIcon | undefined>>('icons', () => (
6161
const isFetching = ref(false)
6262
const iconName = computed(() => {
6363
if (appConfig.nuxtIcon?.aliases?.[props.name]) {
64-
return appConfig.nuxtIcon.aliases[props.name]
64+
return appConfig.nuxtIcon.aliases[props.name]!
6565
}
6666
return props.name
6767
})

0 commit comments

Comments
 (0)