Fix Canvas crashing in scenes dashboard (#86117)

This commit is contained in:
Victor Marin 2024-04-15 15:13:07 +03:00 committed by GitHub
parent 06719e1756
commit 6fb13842a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,7 +66,7 @@ export const plugin = new PanelPlugin<Options>(CanvasPanel)
addStandardCanvasEditorOptions(builder);
if (state) {
if (state && state.scene) {
builder.addNestedOptions(getLayerEditor(state));
const selection = state.selected;