Skip to content

Commit 203cf97

Browse files
committed
Fix - return promise from toggleProjection
1 parent 12a3edb commit 203cf97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/hist2d/TH2Painter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ class TH2Painter extends THistPainter {
590590
this.projection_widthY = widthY;
591591
this.is_projection = ''; // avoid projection handling until area is created
592592

593-
this.provideSpecialDrawArea(new_proj).then(() => { this.is_projection = new_proj; return this.redrawProjection(); });
593+
return this.provideSpecialDrawArea(new_proj).then(() => { this.is_projection = new_proj; return this.redrawProjection(); });
594594
}
595595

596596
/** @summary Redraw projection */

0 commit comments

Comments
 (0)