Jean-Tinland / simple-bar

A yabai status bar widget for Übersicht
https://www.jeantinland.com/toolbox/simple-bar
MIT License
1.21k stars 129 forks source link

JavaScript Error in spaces.jsx #251

Closed HeySora closed 2 years ago

HeySora commented 3 years ago

This happens consistently, with SIP disabled, and the official yabai version.
It sometimes happens with SIP enabled and the donaldguy fork, but quickly disappears in less than a second.

image

I did console.log(spaces) and console.log(spaces.find(({ visible, display }) => visible && display === displayIndex)) just above the erroring line, the two results are :

image

So the issue is that spaces.find(...) returns undefined

HeySora commented 3 years ago

Replacing {visible, display} with { 'is-visible': visible, display: display } now makes this error appear only on the unfocused monitor. The focused monitor will have all spaces but without any application inside.

Jean-Tinland commented 2 years ago

It's the same issue as #253, if you pull the master you shouldn't have this error anymore. :)