Skip to content

Commit

Permalink
Merge pull request #908 from yakatz/patch-1
Browse files Browse the repository at this point in the history
Check if fact is None (default for full node view)
  • Loading branch information
jstraw committed Jul 26, 2023
2 parents f7abf68 + 47034a0 commit fa2be4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puppetboard/views/facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def fact_ajax(env, node, fact, value):
check_env(env, envs)

render_graph = False
if fact in app.config['GRAPH_FACTS'] and value is None and node is None:
if fact is not None and fact in app.config['GRAPH_FACTS'] and value is None and node is None:
render_graph = True

query = AndOperator()
Expand Down

0 comments on commit fa2be4c

Please sign in to comment.