Skip to content

Commit

Permalink
fix: Toogle Visibility check
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 committed Jan 10, 2025
1 parent 0511903 commit 8597b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/block.ts
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ class Block implements BlockOptions {
this.innerHTML = innerHTML;
}
toggleVisibility(show: boolean | null = null) {
if (this.getStyle("display") === "none" || show === false) {
if (this.getStyle("display") === "none" || show === true) {
this.setStyle("display", this.getStyle("__last_display") || "flex");
this.setStyle("__last_display", null);
} else {
Expand Down

0 comments on commit 8597b98

Please sign in to comment.