Browse Source

fix(gui-v2): addOrUpdate onSuccess type

pull/3030/head
Wing-Kam Wong 2 years ago
parent
commit
61f1f44b07
  1. 2
      packages/nc-gui-v2/composables/useColumnCreateStore.ts

2
packages/nc-gui-v2/composables/useColumnCreateStore.ts

@ -172,7 +172,7 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState
if (cdf) formState.value.cdf = formState.value.cdf || null
}
const addOrUpdate = async (onSuccess?: () => {}) => {
const addOrUpdate = async (onSuccess?: () => void) => {
try {
console.log(formState, validators)
if (!(await validate())) return

Loading…
Cancel
Save