Merge pull request #280 from Icinga/fix/delete-node-rendering

Fix tile rendering for Bp nodes with unconfirmed deleted monitored nodes
This commit is contained in:
Eric Lippmann 2020-05-27 08:24:51 +02:00 committed by GitHub
commit 5037d8fea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,6 @@ class NodeRemoveAction extends NodeAction
*/
public function applyTo(BpConfig $config)
{
$config->calculateAllStates();
$name = $this->getNodeName();
$parentName = $this->getParentName();
if ($parentName === null) {
@ -81,7 +80,6 @@ class NodeRemoveAction extends NodeAction
} else {
$node = $config->getNode($name);
$parent = $config->getBpNode($parentName);
$parent->getState();
$parent->removeChild($name);
$node->removeParent($parentName);
if (! $node->hasParents()) {