Browse Source

More tidy up

pull/801/head
Andrew Kingston 6 years ago
parent
commit
e9b9bbba99
  1. 9
      packages/builder/src/components/start/CreateAppModal.svelte

9
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
}
}

Loading…
Cancel
Save