Skip to content

Commit a5d7528

Browse files
committed
cell copy: make sure that cell id is not copied when copying cell
1 parent b070efc commit a5d7528

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

notebook/static/notebook/js/notebook.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,6 +1648,9 @@ define([
16481648
if (cell_json.metadata.deletable !== undefined) {
16491649
delete cell_json.metadata.deletable;
16501650
}
1651+
if (cell_json.id !== undefined) {
1652+
delete cell_json.id;
1653+
}
16511654
this.clipboard.push(cell_json);
16521655
}
16531656
this.enable_paste();

0 commit comments

Comments
 (0)