Skip to content

Commit

Permalink
fix: look for both new and legacy metadata components
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Feb 20, 2024
1 parent 99aa6aa commit 19cdc64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Scene/SDK7Scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export class SDK7Scene {

getLayout(): Layout {
return this.getComposite().components.find(
({ name }) => name === 'inspector::Scene'
({ name }) =>
name === 'inspector::SceneMetadata' || name === 'inspector::Scene'
)?.data[0].json.layout
}

Expand Down

0 comments on commit 19cdc64

Please sign in to comment.