Cannot remove or change widgets
What happened? (Please give us a brief description of what happened.)
Sometimes the widgets get stuck. This seems to especially apply to aiscript widgets. Deleting the widgets, or changing their settings doesn't apply them because on reload its usually gone back to how it was. This is a issue with the servers it seems because it has transferred over to my phone and other browser and clearing all the localstorage, cache, etc resets everything but the widget layout.
Update: This is cause by the server making 2 rows for widgets(there should never be more than 1):
Details from dakkar: The simplest fix would be to add a unique constraint to the table (plus a cleanup query to remove the duplicates that may be there already)
(details regarding API endpoints: get-all
clobbers the first value with the second one, but get
and update
only touch the first one)
Adding widgets seems to work usually. (Though more testing should be done to confirm this)
What did you expect to happen? (Please give us a brief description of what you expected to happen.)
Removing or changing widgets should remove or change the widgets
Contribution Guidelines By submitting this issue, you agree to follow our Contribution Guidelines
- I agree to follow this project's Contribution Guidelines
- I have searched the issue tracker for similar issues, and this is not a duplicate.