From 291ad618e385381337eda376419fa22512cb4b41 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Wed, 3 Apr 2024 11:09:05 +0200 Subject: [PATCH] Change order --- .../DataTable/modals/CreateEditColumn.svelte | 2 +- packages/builder/src/constants/backend/index.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 615ea73f54..92501bec3b 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -394,8 +394,8 @@ FIELDS.BIGINT, FIELDS.BOOLEAN, FIELDS.DATETIME, - FIELDS.ATTACHMENTS, FIELDS.ATTACHMENT_SINGLE, + FIELDS.ATTACHMENTS, FIELDS.LINK, FIELDS.FORMULA, FIELDS.JSON, diff --git a/packages/builder/src/constants/backend/index.js b/packages/builder/src/constants/backend/index.js index e32cbbd0a4..e3888a52e0 100644 --- a/packages/builder/src/constants/backend/index.js +++ b/packages/builder/src/constants/backend/index.js @@ -107,6 +107,14 @@ export const FIELDS = { }, }, }, + ATTACHMENT_SINGLE: { + name: "Attachment", + type: FieldType.ATTACHMENT_SINGLE, + icon: "Document", + constraints: { + presence: false, + }, + }, ATTACHMENTS: { name: "Attachment List", type: FieldType.ATTACHMENTS, @@ -116,14 +124,6 @@ export const FIELDS = { presence: false, }, }, - ATTACHMENT_SINGLE: { - name: "Attachment", - type: FieldType.ATTACHMENT_SINGLE, - icon: "Document", - constraints: { - presence: false, - }, - }, LINK: { name: "Relationship", type: FieldType.LINK,