mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
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
This commit is contained in:
@@ -183,10 +183,8 @@ export const useConsoleStore = create<ConsoleStore>()(
|
||||
) => {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user