Merge branch 'fix-web-slowness' into reusedname-dev
This commit is contained in:
commit
7070615863
|
@ -125,11 +125,11 @@ function syncRecordings(recordings) {
|
|||
}
|
||||
|
||||
// update existing recordings
|
||||
for ( let i in recordings) {
|
||||
let recording = recordings[i];
|
||||
for ( let j in observableRecordingsArray()) {
|
||||
let r = observableRecordingsArray()[j];
|
||||
if (recording.id === r.id) {
|
||||
const recordingsMap = new Map(observableRecordingsArray().map(r => [r.id, r]));
|
||||
|
||||
for (let recording of recordings) {
|
||||
const r = recordingsMap.get(recording.id);
|
||||
if (r) {
|
||||
r.progress = recording.progress;
|
||||
r.sizeInByte = recording.sizeInByte;
|
||||
r.status = recording.status;
|
||||
|
@ -140,7 +140,6 @@ function syncRecordings(recordings) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function updateRecordings() {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue