We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05a4e83 commit 80401f0Copy full SHA for 80401f0
src/packages/frontend/project_store.ts
@@ -404,8 +404,20 @@ export class ProjectStore extends Store<ProjectStoreState> {
404
if (listingStored == null) {
405
return {};
406
}
407
- if ((listingStored != null ? listingStored.errno : undefined) != null) {
408
- return { error: misc.to_json(listingStored) };
+ try {
+ if (listingStored?.errno) {
409
+ return { error: misc.to_json(listingStored) };
410
+ }
411
+ } catch (err) {
412
+ return {
413
+ error: "Error getting directory listing - please try again.",
414
+ };
415
416
+
417
+ if (listingStored?.toJS == null) {
418
419
+ error: "Unable to get directory listing - please try again.",
420
421
422
423
// We can proceed and get the listing as a JS object.
0 commit comments