equinor/webviz-subsurface-components

Stories with layers exposed as controls will crash if layers are instantiated with new (as opposed to json)

nilscb opened this issue · 1 comments

Prevent storybook from copying layers created with "new" because the layer will loose its prototype (superclass) in this case. It will then not be possible to call "clone" on it which is implemented in the superclass (Layer class).

Fixed by #1896