Change icons to attach
This commit is contained in:
parent
b4063fae01
commit
5a93f2b542
|
@ -4324,7 +4324,7 @@
|
|||
},
|
||||
"attachmentsinglefield": {
|
||||
"name": "Single Attachment",
|
||||
"icon": "Document",
|
||||
"icon": "Attach",
|
||||
"styles": ["size"],
|
||||
"requiredAncestors": ["form"],
|
||||
"editable": true,
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue