Skip to content

Commit

Permalink
fix: accidental change
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiarrowood committed Jan 10, 2025
1 parent 3a0a632 commit cb1424e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</template>

<script lang="ts" setup>
import { computed, toRefs, type PropType } from 'vue'
import { computed, toRef, type PropType } from 'vue'
import type { MultiselectItem } from '@kong/kongponents'
import composables from '../../composables'
Expand Down Expand Up @@ -60,10 +60,10 @@ const emit = defineEmits<{
(event: 'modelUpdated', value: any, model: Record<string, any>): void
}>()
const propsRefs = toRefs(props)
const modelRef = toRef(props)
const { getLabelId, getFieldID, clearValidationErrors, value: inputValue } = composables.useAbstractFields({
model: propsRefs.model,
model: modelRef,
schema: props.schema,
formOptions: props.formOptions,
emitModelUpdated: (data: { value: any, model: Record<string, any> }): void => {
Expand Down
6 changes: 3 additions & 3 deletions packages/core/forms/src/components/fields/FieldRadio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</template>

<script lang="ts" setup>
import { toRef, type PropType } from 'vue'
import { toRefs, type PropType } from 'vue'
import composables from '../../composables'
const props = defineProps({
Expand Down Expand Up @@ -58,10 +58,10 @@ const emit = defineEmits<{
(event: 'modelUpdated', value: any, model: Record<string, any>): void
}>()
const modelRef = toRef(props, 'model')
const propsRefs = toRefs(props)
const { updateModelValue, value: inputValue, clearValidationErrors } = composables.useAbstractFields({
model: modelRef,
model: propsRefs.model,
schema: props.schema,
formOptions: props.formOptions,
emitModelUpdated: (data: { value: any, model: Record<string, any> }): void => {
Expand Down

0 comments on commit cb1424e

Please sign in to comment.