More tidy up
This commit is contained in:
parent
3ed1f00e38
commit
5e6047b4f0
|
@ -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…
Reference in New Issue