Change icons to attach
This commit is contained in:
parent
b4063fae01
commit
5a93f2b542
|
@ -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,
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue