Skip to content

Commit

Permalink
Ensure some data is returned (#81375) (#81406)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisronline authored Oct 22, 2020
1 parent a8dd5b8 commit 941af1c
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 941af1c

Please sign in to comment.