From f4eb94879696b845925af274f5c10d16398c998e Mon Sep 17 00:00:00 2001 From: Kenzo-Schwab Date: Tue, 2 Dec 2025 21:07:44 -0700 Subject: [PATCH] I think this fixes the issue of lower level collections persisting in the dropdwon --- .../src/app/download-graph/download-graph.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SBOLCanvasFrontend/src/app/download-graph/download-graph.component.ts b/SBOLCanvasFrontend/src/app/download-graph/download-graph.component.ts index 8af59fd7..de6762b8 100644 --- a/SBOLCanvasFrontend/src/app/download-graph/download-graph.component.ts +++ b/SBOLCanvasFrontend/src/app/download-graph/download-graph.component.ts @@ -350,9 +350,12 @@ export class DownloadGraphComponent implements OnInit { } - if (!found) - this.history.length = 0; + if (!found) { + this.history = []; this.collection = collection; + localStorage.setItem('3collection', this.collection); + localStorage.setItem('3collection_history', JSON.stringify(this.history)); + } this.updateParts(); }