Skip to content

Commit 48632b3

Browse files
committed
Stop: Set Stop to be in InOpereration state on creation
1 parent 2c4bd8c commit 48632b3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ui/src/components/forms/stop/StopForm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { useAppSelector } from '../../../hooks';
1919
import { Visible } from '../../../layoutComponents';
2020
import { Operation, selectIsTimingPlaceModalOpen } from '../../../redux';
2121
import { RequiredKeys } from '../../../types';
22+
import { StopPlaceState } from '../../../types/stop-registry';
2223
import {
2324
KnownValueKey,
2425
mapDateInputToValidityEnd,
@@ -106,6 +107,7 @@ function mapFormStateToQuayKeyValues(
106107
values: [state.validityEnd],
107108
}
108109
: undefined,
110+
{ key: KnownValueKey.StopState, values: [StopPlaceState.InOperation] },
109111
]);
110112
}
111113

0 commit comments

Comments
 (0)