mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 11:47:55 +01:00
fix(Icon): eslint ignore
This commit is contained in:
@@ -20,6 +20,7 @@ const props = defineProps({
|
|||||||
const nuxtApp = useNuxtApp()
|
const nuxtApp = useNuxtApp()
|
||||||
const state = useState<Record<string, Required<IconifyIcon> | Promise<void> | null>>('u-icons', () => ({}))
|
const state = useState<Record<string, Required<IconifyIcon> | Promise<void> | 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 isFetching = computed(() => state.value?.[props.name] && ('then' in state.value?.[props.name]!))
|
||||||
const icon = computed<Required<IconifyIcon> | null>(() =>
|
const icon = computed<Required<IconifyIcon> | null>(() =>
|
||||||
!state.value?.[props.name] || 'then' in state.value[props.name]!
|
!state.value?.[props.name] || 'then' in state.value[props.name]!
|
||||||
|
|||||||
Reference in New Issue
Block a user