Wow! This is driving me mad

This is on my Dev machine as I really don’t want to upload to a live server until resolved.

I have an SPA with a routed content page. On this content page there are 3 modals. In one of the modals is an INSERT query (Action Step). It seems straight forward but the problem is that every time I refresh the SPA page by using F5, Ctrl-F5 or Ctrl-R, or come back to the page from looking at another page, it triggers the Action Step and another ‘blank’ line is added to the database. How can this be? I really can’t understand it.

I know it is definitely this INSERT query because I put a default ‘6’ in the ‘active’ value in the query as a test marker.

Here are some screenshots of the code…

Can anyone spot what might be wrong?

Community Page
Last updated: