Fix create app modal validation
This commit is contained in:
parent
526107aeb0
commit
49c12cf80a
|
@ -24,7 +24,7 @@
|
||||||
const touched = writable({})
|
const touched = writable({})
|
||||||
const validator = {
|
const validator = {
|
||||||
name: string().required("Your application must have a name"),
|
name: string().required("Your application must have a name"),
|
||||||
file: mixed().required("Please choose a file to import"),
|
file: template ? mixed().required("Please choose a file to import") : null,
|
||||||
}
|
}
|
||||||
|
|
||||||
let submitting = false
|
let submitting = false
|
||||||
|
|
Loading…
Reference in New Issue