{
const config = COLLECTION_TYPES.find((entry) => entry.value === type);
if (!config) {
@@ -290,7 +299,8 @@ function RerunCollectionEditor({
...pickerItems.map((item) => ({ label: item.name, value: String(item.id) }))
];
- const orderOptions = orderOptionsFor(collectionType);
+ const firstRunOrderOptions = orderOptionsWithCurrent(collectionType, draft.firstRunPlaybackOrder);
+ const rerunOrderOptions = orderOptionsWithCurrent(collectionType, draft.rerunPlaybackOrder);
return (
@@ -352,7 +362,7 @@ function RerunCollectionEditor({
onChange={(event) =>
setDraft((current) => ({ ...current, firstRunPlaybackOrder: event.target.value as PlaybackOrder }))
}
- options={orderOptions}
+ options={firstRunOrderOptions}
value={draft.firstRunPlaybackOrder}
/>
@@ -363,7 +373,7 @@ function RerunCollectionEditor({
onChange={(event) =>
setDraft((current) => ({ ...current, rerunPlaybackOrder: event.target.value as PlaybackOrder }))
}
- options={orderOptions}
+ options={rerunOrderOptions}
value={draft.rerunPlaybackOrder}
/>