Minor page load fixes

This commit is contained in:
Zef Hemel
2023-10-05 18:24:12 +02:00
parent d8797aa805
commit 386c5ab916
4 changed files with 15 additions and 7 deletions
@@ -31,7 +31,6 @@ export class EventedSpacePrimitives implements SpacePrimitives {
// Avoid race conditions
return newFileList;
}
// console.log("HEREEREEEREEREE");
this.alreadyFetching = true;
const deletedFiles = new Set<string>(Object.keys(this.spaceSnapshot));
for (const meta of newFileList) {
+3
View File
@@ -151,6 +151,9 @@ export class HttpSpacePrimitives implements SpacePrimitives {
if (res.status === 404) {
throw new Error(`Not found`);
}
if (!res.ok) {
throw new Error(`Failed to get file meta: ${res.statusText}`);
}
return this.responseToMeta(name, res);
}