Skip to content

Commit

Permalink
fix: add non-null assertion to iconName (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsuyoshi84 committed Mar 6, 2024
1 parent 0aa6fd7 commit 6b5898b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/Icon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const state = useState<Record<string, IconifyIcon | undefined>>('icons', () => (
const isFetching = ref(false)
const iconName = computed(() => {
if (appConfig.nuxtIcon?.aliases?.[props.name]) {
return appConfig.nuxtIcon.aliases[props.name]
return appConfig.nuxtIcon.aliases[props.name]!
}
return props.name
})
Expand Down

0 comments on commit 6b5898b

Please sign in to comment.