diff --git a/piker/ui/_editors.py b/piker/ui/_editors.py index f8d3e68c..872ec910 100644 --- a/piker/ui/_editors.py +++ b/piker/ui/_editors.py @@ -174,7 +174,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: