Skip to content

Commit fccc494

Browse files
committed
fix(street): disable randomizeOrder input when sampling threshhold is undefined
1 parent b8b2c14 commit fccc494

File tree

1 file changed

+9
-7
lines changed
  • manager-dashboard/app/views/NewProject

1 file changed

+9
-7
lines changed

manager-dashboard/app/views/NewProject/index.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -756,18 +756,20 @@ function NewProject(props: Props) {
756756
hint="What should be the minimum distance (in km) between images on the same Mapillary sequence? Empty indicates that all images on each sequence are used."
757757
disabled={submissionPending || projectTypeEmpty}
758758
/>
759-
<Checkbox
760-
name={'isPano' as const}
761-
value={value?.isPano}
762-
label="Only use 360 degree panorama images."
763-
onChange={setFieldValue}
764-
disabled={submissionPending || projectTypeEmpty}
765-
/>
766759
<Checkbox
767760
name={'randomizeOrder' as const}
768761
value={value?.randomizeOrder}
769762
label="Randomize the order of images in the project."
770763
onChange={setFieldValue}
764+
disabled={submissionPending
765+
|| projectTypeEmpty
766+
|| value.samplingThreshold === undefined}
767+
/>
768+
<Checkbox
769+
name={'isPano' as const}
770+
value={value?.isPano}
771+
label="Only use 360 degree panorama images."
772+
onChange={setFieldValue}
771773
disabled={submissionPending || projectTypeEmpty}
772774
/>
773775
</div>

0 commit comments

Comments
 (0)