fix error on react dismount

This commit is contained in:
Zack Rauen 2020-07-21 18:26:41 -04:00
parent dde0d606ce
commit 84be3a163b
3 changed files with 4 additions and 4 deletions

4
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -75,7 +75,7 @@ export default class AddonCard extends React.Component {
}
closeSettings() {
this.panelRef.current.innerHTML = "";
if (this.settingsPanel instanceof Node) this.panelRef.current.innerHTML = "";
this.setState({settingsOpen: false});
}