Skip to content

Commit 27732d2

Browse files
authored
Fix context switching for the right panel (#533)
1 parent 049a6ae commit 27732d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/base/src/panelview/objectproperties.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ class ObjectPropertiesReact extends React.Component<IProps, IStates> {
8383
this._onClientSharedStateChanged
8484
);
8585
this.setState(old => ({
86-
...old,
86+
jcadOption: undefined,
87+
selectedObjectData: undefined,
88+
selectedObject: undefined,
89+
schema: undefined,
8790
filePath: changed.context.localPath,
8891
jcadObject: this.props.cpModel.jcadModel?.getAllObject(),
8992
clientId: changed.context.model.getClientId()

0 commit comments

Comments
 (0)