mirror of https://github.com/Icinga/icinga2.git
Make sure object list is cleared when selecting a type which does not have any objects
refs #10235
This commit is contained in:
parent
0e40c3ee1d
commit
dcf3fdf782
|
@ -129,7 +129,6 @@ void ApiClient::ObjectsHttpCompletionCallback(HttpRequest& request,
|
|||
if (response.StatusCode < 200 || response.StatusCode > 299) {
|
||||
Log(LogCritical, "ApiClient")
|
||||
<< "Failed HTTP request; Code: " << response.StatusCode << "; Body: " << body;
|
||||
return;
|
||||
} else {
|
||||
try {
|
||||
result = JsonDecode(body);
|
||||
|
|
Loading…
Reference in New Issue