Skip to content

Commit

Permalink
fix(lite): fix issue due to update dev deps (#8218)
Browse files Browse the repository at this point in the history
  • Loading branch information
J0ris-K authored Jan 6, 2025
1 parent fd9c9b2 commit 93a11cf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions @xen-orchestra/lite/src/components/form/FormInputWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { IK_FORM_HAS_LABEL, IK_INPUT_ID } from '@/types/injection-keys'
import type { IconDefinition } from '@fortawesome/fontawesome-common-types'
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons'
import { uniqueId } from 'lodash-es'
import { computed, provide, useSlots } from 'vue'
import { computed, provide } from 'vue'
const props = withDefaults(
defineProps<{
Expand All @@ -59,8 +59,6 @@ const props = withDefaults(
{ disabled: undefined }
)
const slots = useSlots()
const id = computed(() => props.id ?? uniqueId('form-input-'))
provide(IK_INPUT_ID, id)
Expand All @@ -78,7 +76,7 @@ const color = computed<Color | undefined>(() => {
provide(
IK_FORM_HAS_LABEL,
computed(() => slots.label !== undefined)
computed(() => props.label !== undefined)
)
useContext(ColorContext, color)
Expand Down

0 comments on commit 93a11cf

Please sign in to comment.