We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97fa8ca commit 99a7d81Copy full SHA for 99a7d81
src/components/contextView/index.tsx
@@ -68,7 +68,10 @@ export function useContextView(props: IContextViewProps = {}): IContextView {
68
const hide = () => {
69
if (contextView) {
70
contextView.style.visibility = 'hidden';
71
- ReactDOM.unmountComponentAtNode(select('.' + contentClassName)!);
+ const contentContainer = select('.' + contentClassName);
72
+ if (contentContainer) {
73
+ ReactDOM.unmountComponentAtNode(contentContainer);
74
+ }
75
Emitter.emit(ContextViewEvent.onHide);
76
}
77
};
0 commit comments