Skip to content

Commit

Permalink
fix(frontend): add missing required argument to correctly compute isV…
Browse files Browse the repository at this point in the history
…alue (#1807)
  • Loading branch information
fatonramadani authored Jul 7, 2023
1 parent 783588f commit 94a0820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/lib/components/ArgInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -175,7 +175,7 @@
let customValue = false
$: validateInput(pattern, value)
$: validateInput(pattern, value, required)
</script>

<!-- svelte-ignore a11y-autofocus -->
Expand Down

0 comments on commit 94a0820

Please sign in to comment.