Minor page load fixes
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user