bar: fix null pointer error
Client workspaces can be null for some reason?
This commit is contained in:
parent
0274360617
commit
30c0d0d908
1 changed files with 1 additions and 1 deletions
|
|
@ -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", () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue