suppressing abort errors as they are expected

This commit is contained in:
Jamie V 2023-07-07 11:13:43 -07:00
parent a447b0ada8
commit 321c7a3af5

View File

@ -239,9 +239,15 @@ export default class ObjectAPI {
return domainObject; return domainObject;
}).catch((error) => { }).catch((error) => {
console.warn(`Failed to retrieve ${keystring}:`, error); let result;
delete this.cache[keystring]; delete this.cache[keystring];
const result = this.applyGetInterceptors(identifier);
// suppress abort errors
if (error.name !== 'AbortError') {
console.warn(`Failed to retrieve ${keystring}:`, error);
result = this.applyGetInterceptors(identifier);
}
return result; return result;
}); });