diff --git a/platform/viewer/src/routes/StandaloneRouting.js b/platform/viewer/src/routes/StandaloneRouting.js index 7721c71d9..a898a39a4 100644 --- a/platform/viewer/src/routes/StandaloneRouting.js +++ b/platform/viewer/src/routes/StandaloneRouting.js @@ -26,7 +26,7 @@ class StandaloneRouting extends Component { const url = query.url; if (!url) { - reject(new Error("No URL was specified. Use ?url=$yourURL")); + return reject(new Error("No URL was specified. Use ?url=$yourURL")); } // Define a request to the server to retrieve the study data