Skip to content

Commit b1b8654

Browse files
authored
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
1 parent d13a06e commit b1b8654

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/sim/stores/panel/console/store.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,8 @@ export const useConsoleStore = create<ConsoleStore>()(
183183
) => {
184184
set((state) => {
185185
const updatedEntries = state.entries.map((entry) => {
186-
// Match by executionId if provided, otherwise fall back to blockId for backward compatibility
187-
const isMatch = executionId
188-
? entry.executionId === executionId
189-
: entry.blockId === blockId
186+
// Only update if both blockId and executionId match
187+
const isMatch = entry.blockId === blockId && entry.executionId === executionId
190188
if (isMatch) {
191189
if (typeof update === 'string') {
192190
// Simple content update for backward compatibility

0 commit comments

Comments
 (0)