fix ui: safeguard around prefetched mob keys
This commit is contained in:
parent
95b8e9656f
commit
7166daee05
1 changed files with 7 additions and 2 deletions
|
|
@ -183,8 +183,13 @@ export default class SessionStore {
|
|||
}
|
||||
const nextEntryNum =
|
||||
keys.length > 0
|
||||
? Math.max(...keys.map((key) => this.prefetchedMobUrls[key].entryNum)) +
|
||||
1
|
||||
? Math.max(
|
||||
...keys.map((key) =>
|
||||
this.prefetchedMobUrls[key]
|
||||
? this.prefetchedMobUrls[key].entryNum
|
||||
: 0
|
||||
)
|
||||
) + 1
|
||||
: 0;
|
||||
this.prefetchedMobUrls[sessionId] = {
|
||||
data: fileData,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue