diff --git a/frontend/src/lib/components/ArgInput.svelte b/frontend/src/lib/components/ArgInput.svelte index 20f09fa10c..844c233673 100644 --- a/frontend/src/lib/components/ArgInput.svelte +++ b/frontend/src/lib/components/ArgInput.svelte @@ -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)