Skip to content

Commit

Permalink
fix(MesosSummaryUtil): guard host.framework_ids before accessing it
Browse files Browse the repository at this point in the history
Closes DCOS-22443
  • Loading branch information
Julian Gieseke committed May 2, 2018
1 parent 32aab4d commit 7c963ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/utils/MesosSummaryUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const MesosSummaryUtil = {
},

filterHostsByService(hosts, frameworkId) {
return hosts.filter(function(host) {
return host.framework_ids.includes(frameworkId);
return hosts.filter(function({ framework_ids = [] }) {
return framework_ids.includes(frameworkId);
});
},

Expand Down

0 comments on commit 7c963ae

Please sign in to comment.