diff --git a/piker/ui/_editors.py b/piker/ui/_editors.py index a560249d..84a1658c 100644 --- a/piker/ui/_editors.py +++ b/piker/ui/_editors.py @@ -169,7 +169,10 @@ class ArrowEditor(Struct): f'{arrow!r}\n' ) for linked in self.godw.iter_linked(): - linked.chart.plotItem.removeItem(arrow) + if not (chart := linked.chart): + continue + + chart.plotItem.removeItem(arrow) try: arrows.remove(arrow) except ValueError: