Fix primary display schemas when saving
This commit is contained in:
parent
fd21503f3e
commit
06c8e5f815
|
@ -296,6 +296,12 @@
|
|||
delete saveColumn.default
|
||||
}
|
||||
|
||||
// Ensure primary display columns are always required and don't have default values
|
||||
if (primaryDisplay) {
|
||||
saveColumn.constraints.presence = true
|
||||
delete saveColumn.default
|
||||
}
|
||||
|
||||
try {
|
||||
await tables.saveField({
|
||||
originalName,
|
||||
|
|
Loading…
Reference in New Issue