Fix primary display schemas when saving
This commit is contained in:
parent
fd21503f3e
commit
06c8e5f815
|
@ -296,6 +296,12 @@
|
||||||
delete saveColumn.default
|
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 {
|
try {
|
||||||
await tables.saveField({
|
await tables.saveField({
|
||||||
originalName,
|
originalName,
|
||||||
|
|
Loading…
Reference in New Issue