Skip to content

Commit acd8135

Browse files
committed
fix(scheduler): unmount React app using stored root
1 parent 6d14ef8 commit acd8135

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Scheduler/Scheduler/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,6 @@ export class Scheduler implements ComponentFramework.StandardControl<IInputs, IO
172172

173173
public destroy(): void {
174174
// Unmount the React app
175-
ReactDOM.createRoot(this._container).unmount();
175+
this._reactRoot.unmount();
176176
}
177177
}

0 commit comments

Comments
 (0)