Skip to content

Commit f4eb948

Browse files
committed
I think this fixes the issue of lower level collections persisting in the dropdwon
1 parent 8cc86a7 commit f4eb948

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

SBOLCanvasFrontend/src/app/download-graph/download-graph.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,12 @@ export class DownloadGraphComponent implements OnInit {
350350
}
351351

352352

353-
if (!found)
354-
this.history.length = 0;
353+
if (!found) {
354+
this.history = [];
355355
this.collection = collection;
356+
localStorage.setItem('3collection', this.collection);
357+
localStorage.setItem('3collection_history', JSON.stringify(this.history));
358+
}
356359

357360
this.updateParts();
358361
}

0 commit comments

Comments
 (0)