Skip to content

Commit deae1a2

Browse files
author
Jessica Wang
committed
CLOUDSTACK-5771: UI > Infrastructure > SystemVMs page > listView Search > fix a bug that UI kept spinning when there was no matching result.
1 parent 849fdcf commit deae1a2

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

‎ui/scripts/system.js‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7314,7 +7314,7 @@
73147314
data: data,
73157315
success: function(json) {
73167316
var systemvmObjs = json.listsystemvmsresponse.systemvm;
7317-
if (systemvmObjs != null) {
7317+
if (systemvmObjs != undefined) {
73187318
$.ajax({
73197319
url: createURL("listHosts&listAll=true"),
73207320
success: function(json) {
@@ -7330,15 +7330,13 @@
73307330
args.response.success({
73317331
data: systemvmObjs
73327332
});
7333-
},
7334-
error: function(json) {
7335-
args.response.error(parseXMLHttpResponse(json));
73367333
}
73377334
});
7335+
} else {
7336+
args.response.success({
7337+
data: []
7338+
});
73387339
}
7339-
},
7340-
error: function(json) {
7341-
args.response.error(parseXMLHttpResponse(json));
73427340
}
73437341
});
73447342
},

0 commit comments

Comments
 (0)