Skip to content

Commit

Permalink
Fix context switching for the right panel (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou authored Oct 24, 2024
1 parent 049a6ae commit 27732d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/base/src/panelview/objectproperties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ class ObjectPropertiesReact extends React.Component<IProps, IStates> {
this._onClientSharedStateChanged
);
this.setState(old => ({
...old,
jcadOption: undefined,
selectedObjectData: undefined,
selectedObject: undefined,
schema: undefined,
filePath: changed.context.localPath,
jcadObject: this.props.cpModel.jcadModel?.getAllObject(),
clientId: changed.context.model.getClientId()
Expand Down

0 comments on commit 27732d2

Please sign in to comment.