bar: fix null pointer error

Client workspaces can be null for some reason?
This commit is contained in:
2 * r + 2 * t 2025-02-11 21:00:05 +11:00
parent 0274360617
commit 30c0d0d908

View file

@ -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", () => {