diff --git a/packages/assignment-view-celltoolbar/src/celltoolbar.js b/packages/assignment-view-celltoolbar/src/celltoolbar.js index 21afbe75..41df31fe 100644 --- a/packages/assignment-view-celltoolbar/src/celltoolbar.js +++ b/packages/assignment-view-celltoolbar/src/celltoolbar.js @@ -129,8 +129,9 @@ export class AssignmentViewToolbar { */ create_header(div, cell, celltoolbar) { if (cell.cell_type === null) { + let that = this; setTimeout(function () { - this.create_header(div, cell, celltoolbar); + that.create_header(div, cell, celltoolbar); }, 100); } else { if (!nbgrader_utils.is_solution(cell)) {