mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 00:05:27 +00:00
fix(frontend): add missing required argument to correctly compute isValue (#1807)
This commit is contained in:
@@ -138,7 +138,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
function validateInput(pattern: string | undefined, v: any): void {
|
||||
function validateInput(pattern: string | undefined, v: any, required: boolean): void {
|
||||
if (required && (v == undefined || v == null || v === '')) {
|
||||
error = 'Required'
|
||||
valid = false
|
||||
@@ -175,7 +175,7 @@
|
||||
|
||||
let customValue = false
|
||||
|
||||
$: validateInput(pattern, value)
|
||||
$: validateInput(pattern, value, required)
|
||||
</script>
|
||||
|
||||
<!-- svelte-ignore a11y-autofocus -->
|
||||
|
||||
Reference in New Issue
Block a user