Skip to content

Commit 93b639d

Browse files
committed
Changed variable naming for clarity
1 parent d79dd06 commit 93b639d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

frontend/ResultView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@
113113
</v-btn-toggle>
114114
</v-flex>
115115
<v-flex v-if="entry.hasTaxonomy && isSankeyVisible[entry.db]" class="mb-2">
116-
<SankeyDiagram :rawData="entry.taxonomyreport" :db="entry.db" :currentSelectedNodeId="selectedTaxId" :currentSelectedDb="filteredDb" @selectTaxon="handleSankeySelect"></SankeyDiagram>
116+
<SankeyDiagram :rawData="entry.taxonomyreport" :db="entry.db" :currentSelectedNodeId="selectedTaxId" :currentSelectedDb="selectedDb" @selectTaxon="handleSankeySelect"></SankeyDiagram>
117117
</v-flex>
118118
<table class="v-table result-table" style="position:relativ; margin-bottom: 3em;">
119119
<colgroup>
@@ -282,7 +282,7 @@ export default {
282282
alnBoxOffset: 0,
283283
selectedDatabases: 0,
284284
isSankeyVisible: {}, // Track visibility for each entry.db
285-
filteredDb: null,
285+
selectedDb: null,
286286
selectedTaxId: null,
287287
filteredHitsTaxIds: [],
288288
tableMode: 0,
@@ -384,7 +384,7 @@ export default {
384384
handleSankeySelect({ nodeId, descendantIds, db }) {
385385
this.selectedTaxId = nodeId;
386386
this.filteredHitsTaxIds = descendantIds ? descendantIds.map(Number) : null;
387-
this.filteredDb = db;
387+
this.selectedDb = db;
388388
},
389389
filteredAlignments(alignments, db) {
390390
// Convert alignments to an array if it is an object
@@ -396,7 +396,7 @@ export default {
396396
return []; // Return an empty array if conversion fails
397397
}
398398
399-
if (db !== this.filteredDb) {
399+
if (db !== this.selectedDb) {
400400
// Reset filteredHitsTaxIds if db changes
401401
return alignments;
402402
}

0 commit comments

Comments
 (0)