From d2dc75b854411d88e5ce269679ac8abfa5c9f7d7 Mon Sep 17 00:00:00 2001 From: Steffen Zschaler Date: Tue, 9 Jan 2024 11:07:14 +0000 Subject: [PATCH] Be a bit more defensive about URL-loaded files --- platform/src/ActivityManager.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/platform/src/ActivityManager.js b/platform/src/ActivityManager.js index ab116a7..926c05c 100644 --- a/platform/src/ActivityManager.js +++ b/platform/src/ActivityManager.js @@ -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