fix(StandaloneRouting): Promise rejection - added return (#791)

This commit is contained in:
Ramesh R 2019-08-21 19:53:14 +05:30 committed by Erik Ziegler
parent 2cf355856b
commit d09fb4e71c

View File

@ -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