Skip to content

Commit 7f4665d

Browse files
Update the project when an action recording is added (#640)
1 parent 20ba86b commit 7f4665d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/store.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ const createMlStore = (logging: Logging) => {
472472
},
473473

474474
addActionRecordings(id: ActionData["ID"], recs: RecordingData[]) {
475-
return set(({ actions }) => {
475+
return set(({ actions, dataWindow, project, projectEdited }) => {
476476
const updatedActions = actions.map((action) => {
477477
if (action.ID === id) {
478478
return {
@@ -485,6 +485,13 @@ const createMlStore = (logging: Logging) => {
485485
return {
486486
actions: updatedActions,
487487
model: undefined,
488+
...updateProject(
489+
project,
490+
projectEdited,
491+
updatedActions,
492+
undefined,
493+
dataWindow
494+
),
488495
};
489496
});
490497
},

0 commit comments

Comments
 (0)