Browse Source

fix/fixed rollup column validation issue

pull/2988/head
Muhammed Mustafa 2 years ago
parent
commit
0daab21eec
  1. 4
      packages/nc-gui-v2/components/smartsheet-column/RollupOptions.vue
  2. 3
      packages/nc-gui-v2/composables/useColumnCreateStore.ts

4
packages/nc-gui-v2/components/smartsheet-column/RollupOptions.vue

@ -31,6 +31,10 @@ const aggrFunctionsList = [
{ text: 'avgDistinct', value: 'avgDistinct' },
]
if (!formState.fk_relation_column_id) formState.fk_relation_column_id = null
if (!formState.fk_rollup_column_id) formState.fk_rollup_column_id = null
if (!formState.rollup_function) formState.rollup_function = null
const refTables = $computed(() => {
if (!tables || !tables.length) {
return []

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

@ -198,7 +198,8 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState
}
onSuccess()
} catch (e: any) {
toast.error(await extractSdkResponseErrorMsg(e))
const error = await extractSdkResponseErrorMsg(e)
if (error) toast.error(await extractSdkResponseErrorMsg(e))
}
}

Loading…
Cancel
Save