Commit 57f8de4 1 parent 8723a01 commit 57f8de4 Copy full SHA for 57f8de4
File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -612,7 +612,11 @@ function open_editor(
612
612
const seqs_to_add = [ ] ;
613
613
614
614
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
+ }
616
620
} else {
617
621
seqs_to_add . push ( node ) ;
618
622
}
@@ -673,8 +677,13 @@ function open_editor(
673
677
}
674
678
} ) ;
675
679
680
+ nodes_to_add = _ . flatten (
681
+ _ . map ( nodes_to_add , ( d ) => self . fetch_sequences_for_pid ( d ) )
682
+ ) ;
683
+
676
684
_ . each ( nodes_to_add , ( n ) => {
677
685
if ( ! ( n in existing_ids ) && n in valid_ids ) {
686
+ console . log ( n ) ;
678
687
panel_object . _append_node ( valid_ids [ n ] ) ;
679
688
existing_ids [ n ] = 1 ;
680
689
need_update = true ;
You can’t perform that action at this time.
0 commit comments