Skip to content

Commit

Permalink
1070 - client - Set projectId required
Browse files Browse the repository at this point in the history
  • Loading branch information
ivicac committed Sep 26, 2024
1 parent 2b4d101 commit d9d1d1a
Showing 1 changed file with 25 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,29 +155,31 @@ const ApiCollectionDialog = ({apiCollection, onClose, triggerNode}: ApiCollectio
shouldUnregister={false}
/>

<FormField
control={control}
name="projectVersion"
render={({field}) => (
<FormItem>
<FormLabel>Project Version</FormLabel>

<FormControl>
<ProjectInstanceDialogBasicStepProjectVersionsSelect
onChange={(value) => {
field.onChange(value);
setCurProjectVersion(value);
}}
projectId={curProjectId}
projectVersion={curProjectVersion}
/>
</FormControl>

<FormMessage />
</FormItem>
)}
shouldUnregister={false}
/>
{curProjectId && (
<FormField
control={control}
name="projectVersion"
render={({field}) => (
<FormItem>
<FormLabel>Project Version</FormLabel>

<FormControl>
<ProjectInstanceDialogBasicStepProjectVersionsSelect
onChange={(value) => {
field.onChange(value);
setCurProjectVersion(value);
}}
projectId={curProjectId}
projectVersion={curProjectVersion}
/>
</FormControl>

<FormMessage />
</FormItem>
)}
shouldUnregister={false}
/>
)}

<FormField
control={control}
Expand Down

0 comments on commit d9d1d1a

Please sign in to comment.