diff --git a/src/runtime/components/elements/Icon.vue b/src/runtime/components/elements/Icon.vue index 78b523f9..fe4a6dd2 100644 --- a/src/runtime/components/elements/Icon.vue +++ b/src/runtime/components/elements/Icon.vue @@ -20,6 +20,7 @@ const props = defineProps({ const nuxtApp = useNuxtApp() const state = useState | Promise | null>>('u-icons', () => ({})) +// eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain const isFetching = computed(() => state.value?.[props.name] && ('then' in state.value?.[props.name]!)) const icon = computed | null>(() => !state.value?.[props.name] || 'then' in state.value[props.name]!