diff --git a/packages/builder/src/builderStore/utils.js b/packages/builder/src/builderStore/utils.js index a95ba3a601..3ddf6fb667 100644 --- a/packages/builder/src/builderStore/utils.js +++ b/packages/builder/src/builderStore/utils.js @@ -3,7 +3,7 @@ import { AUTO_COLUMN_DISPLAY_NAMES, AUTO_COLUMN_SUB_TYPES, FIELDS, - isAutoColumnUserRelationship + isAutoColumnUserRelationship, } from "../constants/backend" export function getAutoColumnInformation(enabled = true) { diff --git a/packages/builder/src/components/backend/DataTable/DataTable.svelte b/packages/builder/src/components/backend/DataTable/DataTable.svelte index 505bfeb6d9..9197026f4a 100644 --- a/packages/builder/src/components/backend/DataTable/DataTable.svelte +++ b/packages/builder/src/components/backend/DataTable/DataTable.svelte @@ -58,5 +58,4 @@ {/if} - diff --git a/packages/builder/src/components/backend/DataTable/Table.svelte b/packages/builder/src/components/backend/DataTable/Table.svelte index 959f343546..702a1d80dc 100644 --- a/packages/builder/src/components/backend/DataTable/Table.svelte +++ b/packages/builder/src/components/backend/DataTable/Table.svelte @@ -116,7 +116,9 @@ }) } // sort auto-columns to the end if they are present - columnDefs = result.filter(col => !col.autocolumn).concat(result.filter(col => col.autocolumn)) + columnDefs = result + .filter(col => !col.autocolumn) + .concat(result.filter(col => col.autocolumn)) } function selectRelationship(row, fieldName) { diff --git a/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte b/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte index 49d342dd71..2d65010a62 100644 --- a/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte +++ b/packages/builder/src/components/backend/DataTable/TableHeader/TableHeader.svelte @@ -60,9 +60,7 @@ on:mouseleave={() => (hovered = false)}>
- {#if field.autocolumn} - - {/if} + {#if field.autocolumn}{/if} {displayName}
diff --git a/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte index 9c114ae436..1af93dd4f8 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/HideAutocolumnButton.svelte @@ -14,12 +14,9 @@
{#if hideAutocolumns} - + Show Auto Columns - {:else} - - Hide Auto Columns - {/if} + {:else} Hide Auto Columns{/if}
diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 811c005fca..8ae492226f 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -10,14 +10,8 @@ import { cloneDeep } from "lodash/fp" import { backendUiStore } from "builderStore" import { TableNames, UNEDITABLE_USER_FIELDS } from "constants" - import { - FIELDS, - AUTO_COLUMN_SUB_TYPES, - } from "constants/backend" - import { - getAutoColumnInformation, - buildAutoColumn, - } from "builderStore/utils" + import { FIELDS, AUTO_COLUMN_SUB_TYPES } from "constants/backend" + import { getAutoColumnInformation, buildAutoColumn } from "builderStore/utils" import { notifier } from "builderStore/store/notifications" import ValuesList from "components/common/ValuesList.svelte" import DatePicker from "components/common/DatePicker.svelte"