From b01d50a81c31f093962b02d87e145c327222b377 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 4 Aug 2021 15:23:26 +0100 Subject: [PATCH] Linting. --- .../DataTable/modals/CalculateModal.svelte | 21 +++++++++---------- .../DataTable/modals/GroupByModal.svelte | 6 +++++- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte b/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte index f3fb1b1984..660a822898 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CalculateModal.svelte @@ -26,17 +26,16 @@ ) $: fields = viewTable && - Object.keys(viewTable.schema).filter( - fieldName => { - const field = viewTable.schema[fieldName] - return field.type !== FIELDS.FORMULA.type && field.type !== FIELDS.LINK.type && - (view.calculation === "count" || - // don't want to perform calculations based on auto ID - (field.type === "number" && - !field.autocolumn)) - } - - ) + Object.keys(viewTable.schema).filter(fieldName => { + const field = viewTable.schema[fieldName] + return ( + field.type !== FIELDS.FORMULA.type && + field.type !== FIELDS.LINK.type && + (view.calculation === "count" || + // don't want to perform calculations based on auto ID + (field.type === "number" && !field.autocolumn)) + ) + }) function saveView() { views.save(view) diff --git a/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte b/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte index aef6492519..b0df0ef1da 100644 --- a/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/GroupByModal.svelte @@ -11,7 +11,11 @@ $: fields = viewTable && Object.entries(viewTable.schema) - .filter(entry => entry[1].type !== FIELDS.LINK.type && entry[1].type !== FIELDS.FORMULA.type) + .filter( + entry => + entry[1].type !== FIELDS.LINK.type && + entry[1].type !== FIELDS.FORMULA.type + ) .map(([key]) => key) function saveView() {