mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-10-13 22:41:57 +00:00
Make changes to how forceUpdate() is called to hopefully reduce errors with React being stupid and not understanding how the DOM works. Also don't display an empty message for a resub with no attached message.
This commit is contained in:
parent
67053e3804
commit
fb1ea38f1b
6 changed files with 29 additions and 12 deletions
|
@ -504,7 +504,11 @@ export class FineWrapper extends EventEmitter {
|
|||
|
||||
forceUpdate() {
|
||||
for(const inst of this.instances)
|
||||
inst.forceUpdate();
|
||||
try {
|
||||
inst.forceUpdate();
|
||||
} catch(err) {
|
||||
this.fine.log.error(`An error occured when calling forceUpdate on an instance of ${this.name}`, err);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue