Fix App Import (#9796)

This commit is contained in:
Gerard Burns 2023-02-24 13:16:33 +00:00 committed by GitHub
parent 80813f5aa8
commit b80ed3cfee
2 changed files with 8 additions and 8 deletions

View File

@ -28,10 +28,10 @@
const validation = createValidationStore() const validation = createValidationStore()
$: { $: {
const { name, url } = $values const { url } = $values
validation.check({ validation.check({
name, ...$values,
url: url?.[0] === "/" ? url.substring(1, url.length) : url, url: url?.[0] === "/" ? url.substring(1, url.length) : url,
}) })
} }
@ -95,9 +95,9 @@
appValidation.url(validation, { apps: applications }) appValidation.url(validation, { apps: applications })
appValidation.file(validation, { template }) appValidation.file(validation, { template })
// init validation // init validation
const { name, url } = $values const { url } = $values
validation.check({ validation.check({
name, ...$values,
url: url?.[0] === "/" ? url.substring(1, url.length) : url, url: url?.[0] === "/" ? url.substring(1, url.length) : url,
}) })
} }

View File

@ -24,10 +24,10 @@
const validation = createValidationStore() const validation = createValidationStore()
$: { $: {
const { name, url } = $values const { url } = $values
validation.check({ validation.check({
name, ...$values,
url: url?.[0] === "/" ? url.substring(1, url.length) : url, url: url?.[0] === "/" ? url.substring(1, url.length) : url,
}) })
} }
@ -37,9 +37,9 @@
appValidation.name(validation, { apps: applications, currentApp: app }) appValidation.name(validation, { apps: applications, currentApp: app })
appValidation.url(validation, { apps: applications, currentApp: app }) appValidation.url(validation, { apps: applications, currentApp: app })
// init validation // init validation
const { name, url } = $values const { url } = $values
validation.check({ validation.check({
name, ...$values,
url: url?.[0] === "/" ? url.substring(1, url.length) : url, url: url?.[0] === "/" ? url.substring(1, url.length) : url,
}) })
} }