Skip to content

Commit b8fe124

Browse files
Update the project when an action recording is added
1 parent 3a86354 commit b8fe124

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/store.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,13 @@ const createMlStore = (logging: Logging) => {
492492
model: undefined,
493493
...updatedProject,
494494
});
495-
await storageWithErrHandling<void>(() =>
496-
storage.addRecording(recording, updatedAction)
497-
);
495+
await storageWithErrHandling<string | void>([
496+
storage.addRecording(recording, updatedAction!),
497+
storage.updateMakeCodeProject({
498+
project: updatedProject.project,
499+
projectEdited: updatedProject.projectEdited,
500+
}),
501+
]);
498502
},
499503

500504
async deleteAction(action: ActionData) {

0 commit comments

Comments
 (0)