summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/bar.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx
index ae5cde9..ea953d7 100644
--- a/src/modules/bar.tsx
+++ b/src/modules/bar.tsx
@@ -146,7 +146,7 @@ const Workspace = ({ idx }: { idx: number }) => {
const update = () =>
self.toggleClassName(
"occupied",
- hyprland.clients.some(c => c.workspace.id === wsId)
+ hyprland.clients.some(c => c.workspace?.id === wsId)
);
self.hook(hyprland, "notify::focused-workspace", () => {