Skip to content

Commit

Permalink
fix: look for both new and legacy metadata components (#730)
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala authored Feb 20, 2024
1 parent 99aa6aa commit 94ea5a3
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 94ea5a3

Please sign in to comment.