Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 7e03976

Browse files
fix(Util): find function
Prevent the find function from returning undefined in order to fix a dcos-ui bug. Closes DCOS-48704
1 parent 52deb8b commit 7e03976

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/Util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ function find(objects, predicate) {
458458
}
459459
});
460460

461-
return result;
461+
return result || {};
462462
}
463463

464464
var isArray = function(arg) {

0 commit comments

Comments
 (0)