1
0
Fork 0
mirror of synced 2024-07-05 22:40:39 +12:00

Change icons to attach

This commit is contained in:
Adria Navarro 2024-04-10 12:53:42 +02:00
parent b4063fae01
commit 5a93f2b542
3 changed files with 5 additions and 3 deletions

View file

@ -4324,7 +4324,7 @@
}, },
"attachmentsinglefield": { "attachmentsinglefield": {
"name": "Single Attachment", "name": "Single Attachment",
"icon": "Document", "icon": "Attach",
"styles": ["size"], "styles": ["size"],
"requiredAncestors": ["form"], "requiredAncestors": ["form"],
"editable": true, "editable": true,

View file

@ -124,8 +124,8 @@ export const TypeIconMap = {
[FieldType.ARRAY]: "Duplicate", [FieldType.ARRAY]: "Duplicate",
[FieldType.NUMBER]: "123", [FieldType.NUMBER]: "123",
[FieldType.BOOLEAN]: "Boolean", [FieldType.BOOLEAN]: "Boolean",
[FieldType.ATTACHMENTS]: "AppleFiles", [FieldType.ATTACHMENTS]: "Attach",
[FieldType.ATTACHMENT_SINGLE]: "Document", [FieldType.ATTACHMENT_SINGLE]: "Attach",
[FieldType.LINK]: "DataCorrelated", [FieldType.LINK]: "DataCorrelated",
[FieldType.FORMULA]: "Calculator", [FieldType.FORMULA]: "Calculator",
[FieldType.JSON]: "Brackets", [FieldType.JSON]: "Brackets",

View file

@ -21,6 +21,8 @@ const isBetterSample = (newValue, oldValue) => {
} }
if ( if (
newType === "object" && newType === "object" &&
Array.isArray(newValue) &&
Array.isArray(oldValue) &&
Object.keys(newValue).length > Object.keys(oldValue).length Object.keys(newValue).length > Object.keys(oldValue).length
) { ) {
return true return true