Skip to content

Commit a648ad7

Browse files
Update src/power_grid_model_ds/_core/visualizer/callbacks/config.py
Co-authored-by: Vincent Koppen <[email protected]> Signed-off-by: Thijs Baaijen <[email protected]>
1 parent 5465b63 commit a648ad7

File tree

1 file changed

+1
-4
lines changed
  • src/power_grid_model_ds/_core/visualizer/callbacks

1 file changed

+1
-4
lines changed

src/power_grid_model_ds/_core/visualizer/callbacks/config.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,5 @@ def update_arrows(show_arrows, current_stylesheet):
6262
index = selectors.index("edge")
6363
edge_style = current_stylesheet[index]["style"]
6464

65-
if show_arrows:
66-
edge_style["target-arrow-shape"] = "triangle"
67-
else:
68-
edge_style["target-arrow-shape"] = "none"
65+
edge_style["target-arrow-shape"] = "triangle" if show_arrows else "none"
6966
return current_stylesheet

0 commit comments

Comments
 (0)