1
0
Fork 0
mirror of synced 2024-07-03 13:30:46 +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": {
"name": "Single Attachment",
"icon": "Document",
"icon": "Attach",
"styles": ["size"],
"requiredAncestors": ["form"],
"editable": true,

View file

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

View file

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