mirror of
https://github.com/openfaas/faas.git
synced 2025-06-11 17:56:47 +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) {
|
||||
$http.get("../system/functions").then(function (response) {
|
||||
if (response == null || response.data == null) {
|
||||
return
|
||||
}
|
||||
|
||||
if (response && response.data) {
|
||||
if (previousItems.length != response.data.length) {
|
||||
$scope.functions = response.data;
|
||||
|
||||
@ -210,6 +207,7 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$interval', '$f
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
cl(previous);
|
||||
|
Loading…
x
Reference in New Issue
Block a user