From 7e039768ca2e723c7c24b11ab5d1973d6de1e5ba Mon Sep 17 00:00:00 2001 From: Georgi Todorov Date: Wed, 19 Jun 2019 11:32:03 +0300 Subject: [PATCH] fix(Util): find function Prevent the find function from returning undefined in order to fix a dcos-ui bug. Closes DCOS-48704 --- src/Util/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/Util.js b/src/Util/Util.js index 514935f25..d0ed49fc0 100644 --- a/src/Util/Util.js +++ b/src/Util/Util.js @@ -458,7 +458,7 @@ function find(objects, predicate) { } }); - return result; + return result || {}; } var isArray = function(arg) {