Browse Source

reset validation if no validation for the column

Signed-off-by: Vijay Kumar Rathore <professional.vijay8492@gmail.com>
pull/4325/head
Vijay Kumar Rathore 2 years ago
parent
commit
1865054898
  1. 4
      packages/nc-gui/composables/useColumnCreateStore.ts

4
packages/nc-gui/composables/useColumnCreateStore.ts

@ -193,6 +193,10 @@ const [useProvideColumnCreateStore, useColumnCreateStore] = createInjectionState
formState.value.table_name = meta.value?.table_name
// formState.value.title = formState.value.column_name
if (column.value) {
// reset column validation if column is not to be validated
if (!columnToValidate.includes(formState.value.uidt)) {
formState.value.validate = ''
}
await $api.dbTableColumn.update(column.value?.id as string, formState.value)
// Column updated
message.success(t('msg.success.columnUpdated'))

Loading…
Cancel
Save