Skip to content

Commit

Permalink
fix: prevent null as object key
Browse files Browse the repository at this point in the history
  • Loading branch information
cafadev committed Jul 28, 2024
1 parent b11631e commit 9f5aa3e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/vue/auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ declare global {
const FDeleteConfirmationModal: typeof import('./src/tables/components/index')['FDeleteConfirmationModal']
const FFile: typeof import('./src/forms/components/index')['FFile']
const FFileList: typeof import('./src/forms/components/index')['FFileList']
const FFileReveal: typeof import('./src/forms/components/index')['FFileReveal']
const FForm: typeof import('./src/forms/components/index')['FForm']
const FFormBody: typeof import('./src/forms/components/index')['FFormBody']
const FFormFooter: typeof import('./src/forms/components/index')['FFormFooter']
const FFormHeader: typeof import('./src/forms/components/index')['FFormHeader']
const FModal: typeof import('./src/common/components/index')['FModal']
const FPassword: typeof import('./src/forms/components/index')['FPassword']
const FRadio: typeof import('./src/forms/components/index')['FRadio']
const FSelect: typeof import('./src/forms/components/index')['FSelect']
const FTable: typeof import('./src/tables/components/index')['FTable']
Expand Down Expand Up @@ -350,11 +352,13 @@ declare module 'vue' {
readonly FDeleteConfirmationModal: UnwrapRef<typeof import('./src/tables/components/index')['FDeleteConfirmationModal']>
readonly FFile: UnwrapRef<typeof import('./src/forms/components/index')['FFile']>
readonly FFileList: UnwrapRef<typeof import('./src/forms/components/index')['FFileList']>
readonly FFileReveal: UnwrapRef<typeof import('./src/forms/components/index')['FFileReveal']>
readonly FForm: UnwrapRef<typeof import('./src/forms/components/index')['FForm']>
readonly FFormBody: UnwrapRef<typeof import('./src/forms/components/index')['FFormBody']>
readonly FFormFooter: UnwrapRef<typeof import('./src/forms/components/index')['FFormFooter']>
readonly FFormHeader: UnwrapRef<typeof import('./src/forms/components/index')['FFormHeader']>
readonly FModal: UnwrapRef<typeof import('./src/common/components/index')['FModal']>
readonly FPassword: UnwrapRef<typeof import('./src/forms/components/index')['FPassword']>
readonly FRadio: UnwrapRef<typeof import('./src/forms/components/index')['FRadio']>
readonly FSelect: UnwrapRef<typeof import('./src/forms/components/index')['FSelect']>
readonly FTable: UnwrapRef<typeof import('./src/tables/components/index')['FTable']>
Expand Down Expand Up @@ -671,11 +675,13 @@ declare module '@vue/runtime-core' {
readonly FDeleteConfirmationModal: UnwrapRef<typeof import('./src/tables/components/index')['FDeleteConfirmationModal']>
readonly FFile: UnwrapRef<typeof import('./src/forms/components/index')['FFile']>
readonly FFileList: UnwrapRef<typeof import('./src/forms/components/index')['FFileList']>
readonly FFileReveal: UnwrapRef<typeof import('./src/forms/components/index')['FFileReveal']>
readonly FForm: UnwrapRef<typeof import('./src/forms/components/index')['FForm']>
readonly FFormBody: UnwrapRef<typeof import('./src/forms/components/index')['FFormBody']>
readonly FFormFooter: UnwrapRef<typeof import('./src/forms/components/index')['FFormFooter']>
readonly FFormHeader: UnwrapRef<typeof import('./src/forms/components/index')['FFormHeader']>
readonly FModal: UnwrapRef<typeof import('./src/common/components/index')['FModal']>
readonly FPassword: UnwrapRef<typeof import('./src/forms/components/index')['FPassword']>
readonly FRadio: UnwrapRef<typeof import('./src/forms/components/index')['FRadio']>
readonly FSelect: UnwrapRef<typeof import('./src/forms/components/index')['FSelect']>
readonly FTable: UnwrapRef<typeof import('./src/tables/components/index')['FTable']>
Expand Down
1 change: 1 addition & 0 deletions packages/vue/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ declare module 'vue' {
FDeleteConfirmationModal: typeof import('./src/tables/components/FDeleteConfirmationModal.vue')['default']
FFile: typeof import('./src/forms/components/FFile.vue')['default']
FFileList: typeof import('./src/forms/components/FFileList.vue')['default']
FFileReveal: typeof import('./src/forms/components/FFileReveal.vue')['default']
FForm: typeof import('./src/forms/components/FForm.vue')['default']
FFormBody: typeof import('./src/forms/components/FFormBody.vue')['default']
FFormFooter: typeof import('./src/forms/components/FFormFooter.vue')['default']
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class SetListDataWithReactivityFormsHandler implements ISetListDataHandle
settings: {
...settings,
mode: FORM_MODE.update,
lookupValue: record[settings.lookupField],
lookupValue: settings.lookupField ? record[settings.lookupField] : undefined,
},
})

Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/tables/composables/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ export function useTable<
filterParams,
buttons,
list,
record: table.record,
record: table.record as any,
}
}

0 comments on commit 9f5aa3e

Please sign in to comment.