diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx index ae5cde90..ea953d79 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", () => {