From 7330c6fe995b7b78465c5fe0267ebfc674f35622 Mon Sep 17 00:00:00 2001 From: Emir Karabeg Date: Wed, 29 Jan 2025 10:24:28 -0800 Subject: [PATCH] Fixed history timestamp bug --- stores/workflow/history-middleware.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stores/workflow/history-middleware.ts b/stores/workflow/history-middleware.ts index 37589d577b..8ecc91e631 100644 --- a/stores/workflow/history-middleware.ts +++ b/stores/workflow/history-middleware.ts @@ -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, })