Deleting and re-adding widgets to a dashboard breaks it
There's a specific set of steps that has messed up some of our users' dashboards:
- Create a new dashboard
- Add multiple widgets to it.
- Remove all those widgets from the dashboard
- Re-add some widgets
- Click the "Edit Dashboard (Name/Layout)" button
- Click Save without changing anything.
- Refresh the page
This makes none of the widgets appear and causes the "Layout" array in the admin panel to contain one or more "null" values (depending on how many widgets you added/deleted):

The only way to recover from this state is to manually delete the "null" values through the admin interface.
This is on re:dash version 0.8.2
Thanks! I've been trying to find the steps to reproduce this issue for such a long time.
Expect a fix in v0.9.0.
@jcox92 I fixed it in #716. Should I also add a migration that fixes the already broken dashboards, or it's not necessary?
@arikfr Probably not necessary unless other people are looking for that.
Cool, merged as is. It will be part of the 0.9.0 release.
The same exact situation happened again on the current release - I had to edit the db record on the instance to bring it back. Had to remove the null value.
Version - 0.11.1.b2095