Skip to content

Commit

Permalink
fix: scrollbars may not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Aug 3, 2023
1 parent d8cf9b2 commit c07c31a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/workspace-backpack/src/backpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ export class Backpack extends Blockly.DragTarget {
}
const jsons = this.contents_.map((text) => JSON.parse(text));
this.flyout_.show(jsons);
this.workspace_.scrollbar.setVisible(false);
this.workspace_.scrollbar?.setVisible(false);
Blockly.Events.fire(new BackpackOpen(true, this.workspace_.id));
}

Expand All @@ -703,7 +703,7 @@ export class Backpack extends Blockly.DragTarget {
return;
}
this.flyout_.hide();
this.workspace_.scrollbar.setVisible(true);
this.workspace_.scrollbar?.setVisible(true);
Blockly.Events.fire(new BackpackOpen(false, this.workspace_.id));
}

Expand Down

0 comments on commit c07c31a

Please sign in to comment.