Don't add breaking changes

This commit is contained in:
Adria Navarro 2024-03-20 18:41:55 +01:00
parent 3638c1d266
commit 756970319a
1 changed files with 3 additions and 1 deletions

View File

@ -712,7 +712,9 @@
/>
{:else if editableColumn.type === FieldType.ATTACHMENT}
<Toggle
value={editableColumn.subtype !== FieldTypeSubtypes.ATTACHMENT.SINGLE}
value={editableColumn.subtype !== FieldTypeSubtypes.ATTACHMENT.SINGLE &&
// Checking config before the subtype was added
editableColumn.constraints?.length?.maximum !== 1}
on:change={e => {
if (!e.detail) {
editableColumn.subtype = FieldTypeSubtypes.ATTACHMENT.SINGLE