mirror of
https://github.com/gurnec/removeddit.git
synced 2026-03-11 08:54:27 +00:00
Fix minor bug in error-handling
This commit is contained in:
parent
d3fbd86dd3
commit
7cc5521c83
1 changed files with 1 additions and 1 deletions
|
|
@ -518,7 +518,7 @@ class Thread extends React.Component {
|
|||
this.props.global.setError(e, e.helpUrl)
|
||||
if (this.curContig().lastCreated === undefined) {
|
||||
this.contigs.splice(this.curContigIdx, 1)
|
||||
if (this.curContigIdx >= this.contigs.length)
|
||||
if (this.contigs.length && this.curContigIdx >= this.contigs.length)
|
||||
this.setCurContig(this.contigs.length - 1)
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue