From 5e6047b4f02168f903a79b424723d88764ced560 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 27 Oct 2020 09:17:27 +0000 Subject: [PATCH] More tidy up --- .../builder/src/components/start/CreateAppModal.svelte | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte index 7ee707d490..64d84a723f 100644 --- a/packages/builder/src/components/start/CreateAppModal.svelte +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -7,9 +7,8 @@ import Spinner from "components/common/Spinner.svelte" import { API, Info, User } from "./Steps" import Indicator from "./Indicator.svelte" - import { Input, TextArea, Button } from "@budibase/bbui" + import { Button } from "@budibase/bbui" import { goto } from "@sveltech/routify" - import { AppsIcon, InfoIcon, CloseIcon } from "components/common/Icons/" import { fade } from "svelte/transition" import { post } from "builderStore/api" import analytics from "analytics" @@ -23,7 +22,7 @@ let isApiKeyValid let lastApiKey let fetchApiKeyPromise - const validateApiKey = async apiKey => { + const validateApiKey = async (apiKey) => { if (!apiKey) return false // make sure we only fetch once, unless API Key is changed @@ -122,9 +121,7 @@ const fullSchema = Object.assign({}, ...validationSchemas) // Check full form schema - const formIsValid = await object() - .shape(fullSchema) - .isValid(values) + const formIsValid = await object().shape(fullSchema).isValid(values) fullFormIsValid = formIsValid } }