fix(Icon): couldn't load anymore

This commit is contained in:
Benjamin Canac
2022-11-25 10:00:30 +01:00
parent bc0c168c0b
commit 6321d3ed8d

View File

@@ -31,7 +31,7 @@ const component = computed(() => nuxtApp.vueApp.component(props.name))
const loadIconComponent = (name: string) => {
state.value = state.value || {}
if (nuxtApp.vueApp.component(props.name) || state.value[name] || state.value[name] == null) { return state.value[name] }
if (nuxtApp.vueApp.component(props.name) || state.value[name] || state.value[name] === null) { return state.value[name] }
state.value[name] = loadIcon(name)
.then((res) => { state.value[name] = res })