Skip to content

Commit

Permalink
fix(Util): find function
Browse files Browse the repository at this point in the history
Prevent the find function from returning undefined in order to fix a dcos-ui bug.

Closes DCOS-48704
  • Loading branch information
GeorgiSTodorov committed Jun 19, 2019
1 parent 52deb8b commit 7e03976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ function find(objects, predicate) {
}
});

return result;
return result || {};
}

var isArray = function(arg) {
Expand Down

0 comments on commit 7e03976

Please sign in to comment.