Skip to content

Commit 09f775a

Browse files
committed
chore: fix typescript errors in ResourceForm 2
1 parent 3145143 commit 09f775a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/spa/src/components/ResourceForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const mode = computed(() => route.name === 'resource-create' ? 'create' : 'edit'
9191
9292
const emit = defineEmits(['update:record', 'update:isValid']);
9393
94-
const currentValues: Ref<Record<string, any>> = ref({});
94+
const currentValues = ref<any | any[] | null>(null);
9595
const customComponentsInValidity: Ref<Record<string, AdminForthResourceColumnCommon>> = ref({});
9696
const customComponentsEmptiness: Ref<Record<string, AdminForthResourceColumnCommon>> = ref({});
9797

0 commit comments

Comments
 (0)