From 781ba41642ebdf72b1a070d456ade07632bd3a70 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Mon, 20 Mar 2023 15:03:38 -0400 Subject: [PATCH] 19969: Fix required condition on project input, make required prop required Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- src/views/run-process-panel/inputs/project-input.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/run-process-panel/inputs/project-input.tsx b/src/views/run-process-panel/inputs/project-input.tsx index 279e399c..688af4aa 100644 --- a/src/views/run-process-panel/inputs/project-input.tsx +++ b/src/views/run-process-panel/inputs/project-input.tsx @@ -24,7 +24,7 @@ export type ProjectCommandInputParameter = GenericCommandInputParameter (value === undefined); export interface ProjectInputProps { - required?: boolean; + required: boolean; input: ProjectCommandInputParameter; options?: { showOnlyOwned: boolean, showOnlyWritable: boolean }; } @@ -37,7 +37,7 @@ export const ProjectInput = ({ required, input, options }: ProjectInputProps) => commandInput={input} component={ProjectInputComponent as any} format={format} - validate={required !== undefined ? require : undefined} + validate={required ? require : undefined} {...{ options, required -- 2.30.2