Skip to content

Commit

Permalink
Merge pull request #157 from mdenet/fix/files-maybe-null
Browse files Browse the repository at this point in the history
Be a bit more defensive about URL-loaded files
  • Loading branch information
barnettwilliam authored Jan 9, 2024
2 parents 0c5e816 + d2dc75b commit 6abb4f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions platform/src/ActivityManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,10 @@ class ActivityManager {
let panelURLString = this.interpolate(apanel.file);
apanel.url = new URL(panelURLString, this.activitiesUrl).href;
let file = this.fetchFile(panelURLString);
apanel.file = file.content;
apanel.sha = file.sha;
if (file) {
apanel.file = file.content;
apanel.sha = file.sha;
}
};

// Resolve the panel definition reference
Expand Down

0 comments on commit 6abb4f2

Please sign in to comment.