From 87c59db02e3947efe3ddb8099defe7cb0008e8db Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Mon, 16 Aug 2021 22:07:15 +0200 Subject: [PATCH] fix lint issues --- .../components/backend/DataTable/modals/CreateEditRow.svelte | 4 +++- packages/server/src/api/index.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditRow.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditRow.svelte index e99f294380..ce52287c99 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditRow.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditRow.svelte @@ -32,7 +32,9 @@ // Prevent modal closing if there were errors return false } else if (rowResponse.status === 400 && rowResponse.validationErrors) { - errors = Object.keys(rowResponse.validationErrors).map(field => ({message: `${field} ${rowResponse.validationErrors[field][0]}`})) + errors = Object.keys(rowResponse.validationErrors).map(field => ({ + message: `${field} ${rowResponse.validationErrors[field][0]}`, + })) return false } else if (rowResponse.status === 500) { errors = [{ message: rowResponse.message }] diff --git a/packages/server/src/api/index.js b/packages/server/src/api/index.js index f6e5648a26..c473bf619b 100644 --- a/packages/server/src/api/index.js +++ b/packages/server/src/api/index.js @@ -58,7 +58,7 @@ router.use(async (ctx, next) => { ctx.body = { message: err.message, status: ctx.status, - validationErrors: err.validation + validationErrors: err.validation, } if (env.NODE_ENV !== "jest") { ctx.log.error(err)