Fixed history timestamp bug

This commit is contained in:
Emir Karabeg
2025-01-29 10:24:28 -08:00
parent 5ee1a8c299
commit 7330c6fe99

View File

@@ -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,
})