bar: fix null pointer errors
This commit is contained in:
parent
67f4526a9a
commit
4ce74c4dc5
1 changed files with 4 additions and 2 deletions
|
|
@ -51,12 +51,14 @@ const ActiveWindow = () => (
|
||||||
className="icon"
|
className="icon"
|
||||||
setup={self =>
|
setup={self =>
|
||||||
hookFocusedClientProp(self, "class", c => {
|
hookFocusedClientProp(self, "class", c => {
|
||||||
self.label = c ? getAppCategoryIcon(c.class) : "desktop_windows";
|
self.label = c?.class ? getAppCategoryIcon(c.class) : "desktop_windows";
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<label
|
<label
|
||||||
setup={self => hookFocusedClientProp(self, "title", c => (self.label = c ? ellipsize(c.title) : "Desktop"))}
|
setup={self =>
|
||||||
|
hookFocusedClientProp(self, "title", c => (self.label = c?.title ? ellipsize(c.title) : "Desktop"))
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</box>
|
</box>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue