mirror of
https://github.com/openfaas/faas.git
synced 2025-06-12 10:16:46 +00:00
Undo early return in updateData callback
**What** - Revert to original if-block structure to reduce the size of the diff Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
This commit is contained in:
parent
cb367096ae
commit
334288b130
6
gateway/assets/script/bootstrap.js
vendored
6
gateway/assets/script/bootstrap.js
vendored
@ -185,10 +185,7 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$interval', '$f
|
|||||||
|
|
||||||
var cl = function (previousItems) {
|
var cl = function (previousItems) {
|
||||||
$http.get("../system/functions").then(function (response) {
|
$http.get("../system/functions").then(function (response) {
|
||||||
if (response == null || response.data == null) {
|
if (response && response.data) {
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if (previousItems.length != response.data.length) {
|
if (previousItems.length != response.data.length) {
|
||||||
$scope.functions = response.data;
|
$scope.functions = response.data;
|
||||||
|
|
||||||
@ -210,6 +207,7 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$interval', '$f
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
cl(previous);
|
cl(previous);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user