File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
notebook/static/notebook/js Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -490,6 +490,9 @@ define([
490
490
var data = { } ;
491
491
// deepcopy the metadata so copied cells don't share the same object
492
492
data . metadata = JSON . parse ( JSON . stringify ( this . metadata ) ) ;
493
+ if ( this . id !== undefined ) {
494
+ data . id = this . id ;
495
+ }
493
496
if ( data . metadata . deletable ) {
494
497
delete data . metadata . deletable ;
495
498
}
@@ -511,6 +514,9 @@ define([
511
514
if ( data . metadata !== undefined ) {
512
515
this . metadata = data . metadata ;
513
516
}
517
+ if ( data . id !== undefined ) {
518
+ this . id = data . id ;
519
+ }
514
520
} ;
515
521
516
522
Original file line number Diff line number Diff line change @@ -1648,6 +1648,9 @@ define([
1648
1648
if ( cell_json . metadata . deletable !== undefined ) {
1649
1649
delete cell_json . metadata . deletable ;
1650
1650
}
1651
+ if ( cell_json . id !== undefined ) {
1652
+ delete cell_json . id ;
1653
+ }
1651
1654
this . clipboard . push ( cell_json ) ;
1652
1655
}
1653
1656
this . enable_paste ( ) ;
You can’t perform that action at this time.
0 commit comments