Fix error for zero results (#692)
This commit is contained in:
1 parent
5981a21830
commit
3810e9567f
1 file changed
+1
-1
@@ -829,7 +829,7 @@ class TopologyHomeView(PermissionRequiredMixin, View):
|
|||||||
node_label_items=node_label_items,
|
node_label_items=node_label_items,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not topo_data["nodes"]:
|
if topo_data is None or not topo_data["nodes"]:
|
||||||
empty_result = True
|
empty_result = True
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in new issue
Block a user