fix(player): hide empty index prop

This commit is contained in:
nick-delirium 2023-05-22 14:47:36 +02:00
parent 49253f7a4d
commit 0ce10e4968

View file

@ -93,8 +93,7 @@ export default class MFileReader extends RawMessageReader {
const index = this.noIndexes ? 0 : this.getLastMessageID()
const msg = Object.assign(rewriteMessage(rMsg), {
time: this.currentTime,
_index: this.noIndexes ? undefined : index,
})
}, !this.noIndexes ? { _index: index } : {})
return msg
}