Bubble Plugin : Update code is running twice one before page load and second after it

im facing issue my plugin’s update code running twice
sssss

update code could run multiple time. Any time Bubble load something into the plugin parameters, this will trigger update. You may need to add a conditionnal for the first run VS all other update OR check if you get all data needed before you run the script OR draw the element and use update function (if exist) in the script