Skip to content

Commit 9f5aa3e

Browse files
committed
fix: prevent null as object key
1 parent b11631e commit 9f5aa3e

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

packages/vue/auto-imports.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@ declare global {
2020
const FDeleteConfirmationModal: typeof import('./src/tables/components/index')['FDeleteConfirmationModal']
2121
const FFile: typeof import('./src/forms/components/index')['FFile']
2222
const FFileList: typeof import('./src/forms/components/index')['FFileList']
23+
const FFileReveal: typeof import('./src/forms/components/index')['FFileReveal']
2324
const FForm: typeof import('./src/forms/components/index')['FForm']
2425
const FFormBody: typeof import('./src/forms/components/index')['FFormBody']
2526
const FFormFooter: typeof import('./src/forms/components/index')['FFormFooter']
2627
const FFormHeader: typeof import('./src/forms/components/index')['FFormHeader']
2728
const FModal: typeof import('./src/common/components/index')['FModal']
29+
const FPassword: typeof import('./src/forms/components/index')['FPassword']
2830
const FRadio: typeof import('./src/forms/components/index')['FRadio']
2931
const FSelect: typeof import('./src/forms/components/index')['FSelect']
3032
const FTable: typeof import('./src/tables/components/index')['FTable']
@@ -350,11 +352,13 @@ declare module 'vue' {
350352
readonly FDeleteConfirmationModal: UnwrapRef<typeof import('./src/tables/components/index')['FDeleteConfirmationModal']>
351353
readonly FFile: UnwrapRef<typeof import('./src/forms/components/index')['FFile']>
352354
readonly FFileList: UnwrapRef<typeof import('./src/forms/components/index')['FFileList']>
355+
readonly FFileReveal: UnwrapRef<typeof import('./src/forms/components/index')['FFileReveal']>
353356
readonly FForm: UnwrapRef<typeof import('./src/forms/components/index')['FForm']>
354357
readonly FFormBody: UnwrapRef<typeof import('./src/forms/components/index')['FFormBody']>
355358
readonly FFormFooter: UnwrapRef<typeof import('./src/forms/components/index')['FFormFooter']>
356359
readonly FFormHeader: UnwrapRef<typeof import('./src/forms/components/index')['FFormHeader']>
357360
readonly FModal: UnwrapRef<typeof import('./src/common/components/index')['FModal']>
361+
readonly FPassword: UnwrapRef<typeof import('./src/forms/components/index')['FPassword']>
358362
readonly FRadio: UnwrapRef<typeof import('./src/forms/components/index')['FRadio']>
359363
readonly FSelect: UnwrapRef<typeof import('./src/forms/components/index')['FSelect']>
360364
readonly FTable: UnwrapRef<typeof import('./src/tables/components/index')['FTable']>
@@ -671,11 +675,13 @@ declare module '@vue/runtime-core' {
671675
readonly FDeleteConfirmationModal: UnwrapRef<typeof import('./src/tables/components/index')['FDeleteConfirmationModal']>
672676
readonly FFile: UnwrapRef<typeof import('./src/forms/components/index')['FFile']>
673677
readonly FFileList: UnwrapRef<typeof import('./src/forms/components/index')['FFileList']>
678+
readonly FFileReveal: UnwrapRef<typeof import('./src/forms/components/index')['FFileReveal']>
674679
readonly FForm: UnwrapRef<typeof import('./src/forms/components/index')['FForm']>
675680
readonly FFormBody: UnwrapRef<typeof import('./src/forms/components/index')['FFormBody']>
676681
readonly FFormFooter: UnwrapRef<typeof import('./src/forms/components/index')['FFormFooter']>
677682
readonly FFormHeader: UnwrapRef<typeof import('./src/forms/components/index')['FFormHeader']>
678683
readonly FModal: UnwrapRef<typeof import('./src/common/components/index')['FModal']>
684+
readonly FPassword: UnwrapRef<typeof import('./src/forms/components/index')['FPassword']>
679685
readonly FRadio: UnwrapRef<typeof import('./src/forms/components/index')['FRadio']>
680686
readonly FSelect: UnwrapRef<typeof import('./src/forms/components/index')['FSelect']>
681687
readonly FTable: UnwrapRef<typeof import('./src/tables/components/index')['FTable']>

packages/vue/components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare module 'vue' {
1414
FDeleteConfirmationModal: typeof import('./src/tables/components/FDeleteConfirmationModal.vue')['default']
1515
FFile: typeof import('./src/forms/components/FFile.vue')['default']
1616
FFileList: typeof import('./src/forms/components/FFileList.vue')['default']
17+
FFileReveal: typeof import('./src/forms/components/FFileReveal.vue')['default']
1718
FForm: typeof import('./src/forms/components/FForm.vue')['default']
1819
FFormBody: typeof import('./src/forms/components/FFormBody.vue')['default']
1920
FFormFooter: typeof import('./src/forms/components/FFormFooter.vue')['default']

packages/vue/src/tables/capabilities/set-list-data-with-reactivity-form.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class SetListDataWithReactivityFormsHandler implements ISetListDataHandle
5555
settings: {
5656
...settings,
5757
mode: FORM_MODE.update,
58-
lookupValue: record[settings.lookupField],
58+
lookupValue: settings.lookupField ? record[settings.lookupField] : undefined,
5959
},
6060
})
6161

packages/vue/src/tables/composables/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ export function useTable<
104104
filterParams,
105105
buttons,
106106
list,
107-
record: table.record,
107+
record: table.record as any,
108108
}
109109
}

0 commit comments

Comments
 (0)