Skip to content

Commit 0d73a51

Browse files
committed
Merge remote-tracking branch 'origin/feat/vis-switch-menus' into feat/vis-switch-menus
2 parents 0fa0b01 + a648ad7 commit 0d73a51

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)