From 8597b98d3a9f8f19af1325ed1d3deeac0e1973c3 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Fri, 10 Jan 2025 14:12:31 +0530 Subject: [PATCH] fix: Toogle Visibility check --- frontend/src/utils/block.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/utils/block.ts b/frontend/src/utils/block.ts index 7c1e810a..dfd341d9 100644 --- a/frontend/src/utils/block.ts +++ b/frontend/src/utils/block.ts @@ -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 {