1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

More tidy up

This commit is contained in:
Andrew Kingston 2020-10-27 09:17:27 +00:00
parent 3ed1f00e38
commit 5e6047b4f0

View file

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