Skip to content

Commit b3f35a0

Browse files
committed
fix #7869 -- jupyter/course/nbgrader: minor bug showing warning about protected cell
- root cause was mangling of an optimization when checking changing input of a cell
1 parent 93ff101 commit b3f35a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages/jupyter/redux/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ export abstract class JupyterActions extends Actions<JupyterStoreState> {
385385
// Might throw a CellWriteProtectedException
386386
public set_cell_input(id: string, input: string, save = true): void {
387387
if (!this.store) return;
388-
if (this.store.getIn(["this.st", id, "input"]) == input) {
388+
if (this.store.getIn(["cells", id, "input"]) == input) {
389389
// nothing changed. Note, I tested doing the above check using
390390
// both this.syncdb and this.store, and this.store is orders of magnitude faster.
391391
return;

0 commit comments

Comments
 (0)