quick patch to fix issue with updates

This commit is contained in:
split / May 2023-08-28 11:08:00 -07:00
parent 47568c6c8f
commit f4697850c6

View file

@ -320,7 +320,7 @@ export default class Files {
} }
if (!file.sizeInBytes) file_updates.sizeInBytes = atSIB.reduce((a,b) => a+b); if (!file.sizeInBytes) file_updates.sizeInBytes = atSIB.reduce((a,b) => a+b, 0);
if (!file.chunkSize) file_updates.chunkSize = atSIB[0] if (!file.chunkSize) file_updates.chunkSize = atSIB[0]
if (Object.keys(file_updates).length) { // if file_updates not empty if (Object.keys(file_updates).length) { // if file_updates not empty
// i gotta do these weird workarounds, ts is weird sometimes // i gotta do these weird workarounds, ts is weird sometimes