1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(r2a): fix wizard r2a bug EE-3680 (#7241)

This commit is contained in:
Ali 2022-07-12 13:15:14 +12:00 committed by GitHub
parent 4cc672f902
commit 23eca3ce80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,13 +67,7 @@ export function react2angular<T, U extends PropNames<T>[]>(
el
);
};
this.$onDestroy = () => {
// eslint-disable-next-line react/no-find-dom-node
const domNode = ReactDOM.findDOMNode(el);
if (domNode != null && domNode.parentElement != null) {
ReactDOM.unmountComponentAtNode(domNode.parentElement);
}
};
this.$onDestroy = () => ReactDOM.unmountComponentAtNode(el);
}
}