Editing shape throws error

I am trying to edit shape in plotly js, but getting an error like this
issue is not there when I try to add new shape

WRFM.ai and 8 more pages - Work - Microsoft​ Edge 7_26_2024 4_18_07 PM

please help,

thanks