From 71834d01c698333c29a53b94447671ea675a0534 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 28 May 2021 19:55:01 +0100 Subject: [PATCH] Formatting. --- packages/server/src/utilities/workerRequests.js | 1 - packages/standard-components/src/forms/validation.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/server/src/utilities/workerRequests.js b/packages/server/src/utilities/workerRequests.js index b3a80711b..639c178e2 100644 --- a/packages/server/src/utilities/workerRequests.js +++ b/packages/server/src/utilities/workerRequests.js @@ -98,7 +98,6 @@ exports.deleteGlobalUser = async (ctx, globalId) => { } exports.getGlobalUsers = async (ctx, appId = null, globalId = null) => { - const endpoint = globalId ? `/api/admin/users/${globalId}` : `/api/admin/users` diff --git a/packages/standard-components/src/forms/validation.js b/packages/standard-components/src/forms/validation.js index 8433705e0..ebdb3b3da 100644 --- a/packages/standard-components/src/forms/validation.js +++ b/packages/standard-components/src/forms/validation.js @@ -77,7 +77,7 @@ const lengthConstraint = maxLength => value => { } const numericalConstraint = (constraint, error) => value => { - if (value == null || value === "") { + if (value == null || value === "") { return null } if (isNaN(value)) {