Browse Source
Merge pull request #4972 from Budibase/fix/table-primary-display-validation
Properly set required constraints for display columns
master
Andrew Kingston
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
1 deletions
-
packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte
|
|
|
@ -12,7 +12,7 @@ |
|
|
|
Modal, |
|
|
|
notifications, |
|
|
|
} from "@budibase/bbui" |
|
|
|
import { createEventDispatcher } from "svelte" |
|
|
|
import { createEventDispatcher, onMount } from "svelte" |
|
|
|
import { cloneDeep } from "lodash/fp" |
|
|
|
import { tables } from "stores/backend" |
|
|
|
import { TableNames, UNEDITABLE_USER_FIELDS } from "constants" |
|
|
|
@ -321,6 +321,12 @@ |
|
|
|
} |
|
|
|
return newError |
|
|
|
} |
|
|
|
|
|
|
|
onMount(() => { |
|
|
|
if (primaryDisplay) { |
|
|
|
field.constraints.presence = { allowEmpty: false } |
|
|
|
} |
|
|
|
}) |
|
|
|
</script> |
|
|
|
|
|
|
|
<ModalContent |
|
|
|
|