Skip to content

Commit 57f8de4

Browse files
committed
Hot fix for MSPP
1 parent 8723a01 commit 57f8de4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/clustersOfInterest.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,11 @@ function open_editor(
612612
const seqs_to_add = [];
613613

614614
if (self.has_multiple_sequences) {
615-
seqs_to_add.push(...self.primary_key_list[node.id]);
615+
if (node.id in self.primary_key_list) {
616+
seqs_to_add.push(...self.primary_key_list[node.id]);
617+
} else {
618+
seqs_to_add.push(node);
619+
}
616620
} else {
617621
seqs_to_add.push(node);
618622
}
@@ -673,8 +677,13 @@ function open_editor(
673677
}
674678
});
675679

680+
nodes_to_add = _.flatten(
681+
_.map(nodes_to_add, (d) => self.fetch_sequences_for_pid(d))
682+
);
683+
676684
_.each(nodes_to_add, (n) => {
677685
if (!(n in existing_ids) && n in valid_ids) {
686+
console.log(n);
678687
panel_object._append_node(valid_ids[n]);
679688
existing_ids[n] = 1;
680689
need_update = true;

0 commit comments

Comments
 (0)