mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-08 22:48:14 -05:00
Fixed history timestamp bug
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { StateCreator } from 'zustand'
|
||||
import { WorkflowState, WorkflowStore } from './types'
|
||||
import { HistoryEntry, WorkflowHistory, HistoryActions } from './history-types'
|
||||
import { getTimestamp } from '@/lib/utils'
|
||||
|
||||
const MAX_HISTORY_LENGTH = 20
|
||||
|
||||
@@ -81,7 +80,7 @@ export const createHistoryEntry = (
|
||||
blocks: { ...state.blocks },
|
||||
edges: [...state.edges ],
|
||||
},
|
||||
timestamp: getTimestamp(),
|
||||
timestamp: Date.now(),
|
||||
action,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user