diyhue / diyHueUI

React web interface of the diyhue bridge emulator
2 stars 1 forks source link

Expand on a none RGB light group throws a warning #1

Open Fisico opened 2 years ago

Fisico commented 2 years ago

In groups view expanding a group with none RGB lights throws a warning:

react-dom.development.js:67 Warning: Expected `onClick` listener to be a function, instead got `false`.

If you used to conditionally omit it with onClick={condition && value}, pass onClick={condition ? value : undefined} instead.
    at svg
    at IconBase
    at FaPalette
    at div
    at VisualElementHandler (http://localhost:3000/static/js/bundle.js:210608:38)
    at MotionComponent (http://localhost:3000/static/js/bundle.js:210508:20)
    at div
    at VisualElementHandler (http://localhost:3000/static/js/bundle.js:210608:38)
    at MotionComponent (http://localhost:3000/static/js/bundle.js:210508:20)
    at LayoutGroup (http://localhost:3000/static/js/vendors-node_modules_jaames_iro_dist_iro_es_js-node_modules_lodash_debounce_index_js-node_mod-df8dca.chunk.js:76657:21)
    at div
    at Group (http://localhost:3000/static/js/src_views_Groups_js.chunk.js:419:5)
    at div
    at div
    at Groups (http://localhost:3000/static/js/src_views_Groups_js.chunk.js:1600:5)
    at Route (http://localhost:3000/static/js/bundle.js:195138:29)
    at Switch (http://localhost:3000/static/js/bundle.js:195340:29)
    at PresenceChild (http://localhost:3000/static/js/bundle.js:207363:21)
    at AnimatePresence (http://localhost:3000/static/js/bundle.js:207527:21)
    at Router (http://localhost:3000/static/js/bundle.js:194773:30)
    at HashRouter (http://localhost:3000/static/js/bundle.js:194439:35)
    at Suspense
    at div
    at TheContent (http://localhost:3000/static/js/bundle.js:397:5)
    at div
    at TheLayout (http://localhost:3000/static/js/bundle.js:720:5)
    at Suspense
    at App (http://localhost:3000/static/js/bundle.js:191:80)