Skip to content

Commit a9949ff

Browse files
Have the first action in place always
1 parent 30ee2b3 commit a9949ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ const createMlStore = (logging: Logging) => {
298298
persist(
299299
(set, get) => ({
300300
timestamp: undefined,
301-
actions: [],
301+
actions: [createFirstAction()],
302302
dataWindow: currentDataWindow,
303303
isRecording: false,
304304
project: createUntitledProject(),
@@ -389,7 +389,7 @@ const createMlStore = (logging: Logging) => {
389389
const untitledProject = createUntitledProject();
390390
set(
391391
{
392-
actions: [],
392+
actions: [createFirstAction()],
393393
dataWindow: currentDataWindow,
394394
model: undefined,
395395
project: projectName

0 commit comments

Comments
 (0)