From 060073325dbbf6cc94ce6471134efb91fe191cca Mon Sep 17 00:00:00 2001 From: Gareth George Date: Fri, 14 Feb 2025 00:25:00 -0800 Subject: [PATCH] fix: snapshot still showing after forget until page is refreshed --- webui/src/state/logstate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/src/state/logstate.ts b/webui/src/state/logstate.ts index fac0cadb..4a8d4c56 100644 --- a/webui/src/state/logstate.ts +++ b/webui/src/state/logstate.ts @@ -143,7 +143,7 @@ export class OplogState { } else { const flow = this.byFlowID.get(op.flowId); if (op.op.case === "operationIndexSnapshot" && flow && - flow.find((o) => o.op.case === "operationIndexSnapshot" && o.snapshotId === op.snapshotId)) { + flow.find((o) => o.id !== op.id && o.op.case === "operationIndexSnapshot" && o.snapshotId === op.snapshotId)) { // don't add a second index snapshot for the same flow, this can happen in multihost mode continue; }