VirtualFlyBrain / VFB2

Virtual Fly Brain Documentation Site
https://virtualflybrain.org
MIT License
5 stars 6 forks source link

variables[i].isVisible is not a function - geppetto-client/js/components/interface/3dCanvas/SceneController.js?:42 #306

Open Robbie1977 opened 3 years ago

Robbie1977 commented 3 years ago
Description of the problem

It's possible to get to a state where this check fails - we need to a check for isVisible functions existence:

TypeError: variables[i].isVisible is not a function at SceneController.isVisible (webpack:///./nodemodules/@geppettoengine/geppetto-client/geppetto-client/js/components/interface/3dCanvas/SceneController.js?:42:26) at Object.condition (webpack:///./components/configuration/VFBListViewer/controlsMenuConfiguration.js?:180:50) at ListViewerControlsMenu.visibleButton (webpack:///./containers/VFBMainContainer.js+_315modules?:19566:37) at ListViewerControlsMenu.iterateConfList (webpack:///./containers/VFBMainContainer.js+_315modules?:19605:14) at eval (webpack:///./containers/VFBMainContainer.js+_315modules?:19601:18) at Array.map () at ListViewerControlsMenu.iterateConfList (webpack:///./containers/VFBMainContainer.js+_315modules?:19600:19) at eval (webpack:///./containers/VFBMainContainer.js+_315modules?:19636:20) at Array.map () at eval (webpack:///./containers/VFBMainContainer.js+_315_modules?:19634:23)

This form is for VFB2 bug reports and feature requests.

If you need help, please use the forum.

Describe the bug or feature request in detail.

Always include a code snippet, screenshots, and any relevant data to help us understand your issue.

Browser
OS