Commit 86b96e6
front: avoid sending empty nodes in storeTrainPathNodes()
MacroEditorState.nodes includes null entries in case some nodes
got dedup'ed. The filter() condition retains these null nodes,
resulting in empty objects sent to editoast and a 400 HTTP error
when opening the macro editor.
Ignore null nodes in the filter() condition to fix this.
Signed-off-by: Simon Ser <[email protected]>
Fixes: fb24ab4 ("front: persist nodes from file import in nge")
Closes: #144251 parent 2a4cb8e commit 86b96e6
File tree
1 file changed
+1
-1
lines changed- front/src/applications/operationalStudies/views/Scenario/components/MacroEditor
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments