Skip to content

Commit 42fd22b

Browse files
committed
Fix end date being set for terminal even if indefinite was selected
1 parent a6b33f3 commit 42fd22b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/stop-registry/terminals/hooks/useCreateTerminal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const mapFormStateToInput = ({
100100
values: [state.electricCharging],
101101
}
102102
: undefined,
103-
]),
103+
]).filter((kv) => (kv?.key !== 'validityEnd' ? true : !state.indefinite)),
104104
alternativeNames: [
105105
{
106106
name: { lang: 'swe', value: state.nameSwe },

0 commit comments

Comments
 (0)