Skip to content

Commit

Permalink
Ensure some data is returned (elastic#81375)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline committed Oct 21, 2020
1 parent ca2e8e5 commit 36650e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ uiRoutes.when('/elasticsearch/nodes', {

const promise = globalState.cluster_uuid
? getNodes()
: new Promise((resolve) => resolve({}));
: new Promise((resolve) => resolve({ data: {} }));
return promise
.then((response) => response.data)
.catch((err) => {
Expand Down

0 comments on commit 36650e6

Please sign in to comment.