From d09fb4e71c49e799e2fa49c2a1aa38679ed21c14 Mon Sep 17 00:00:00 2001 From: Ramesh R Date: Wed, 21 Aug 2019 19:53:14 +0530 Subject: [PATCH] fix(StandaloneRouting): Promise rejection - added `return` (#791) --- platform/viewer/src/routes/StandaloneRouting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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