From b1b86542360233835486030e01500edc4cdeb8b7 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Mon, 14 Jul 2025 17:03:39 -0700 Subject: [PATCH] fix(console): match by execution & block id when updating console-entry (#685) * fix(console): match by execution & block id when updating console-entry * remove fallback --- apps/sim/stores/panel/console/store.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/sim/stores/panel/console/store.ts b/apps/sim/stores/panel/console/store.ts index d562a5ca56..b5198beca3 100644 --- a/apps/sim/stores/panel/console/store.ts +++ b/apps/sim/stores/panel/console/store.ts @@ -183,10 +183,8 @@ export const useConsoleStore = create()( ) => { set((state) => { const updatedEntries = state.entries.map((entry) => { - // Match by executionId if provided, otherwise fall back to blockId for backward compatibility - const isMatch = executionId - ? entry.executionId === executionId - : entry.blockId === blockId + // Only update if both blockId and executionId match + const isMatch = entry.blockId === blockId && entry.executionId === executionId if (isMatch) { if (typeof update === 'string') { // Simple content update for backward compatibility