YIO-Remote / web-configurator

🖥️ web configurator - self hosted, locally available website
GNU General Public License v3.0
0 stars 3 forks source link

[Profiles] Crash after deleting a page without removing its instances from profiles first #27

Closed simoncheeseman closed 4 years ago

simoncheeseman commented 4 years ago

Description

Deleting a page without removing its instances first causes the Profiles page to crash. This keeps happening until all instances of the page are removed from profiles in the config file (e.g. in the editor).

How to Reproduce

Steps to reproduce the behavior:

  1. Create a page
  2. Add it to a profile
  3. Delete the page (from the Available Pages list)
  4. Try to drag any page to a profile or reorder/remove pages in a profile

Expected behavior

Ideally, when deleting a page, a confirmation prompt should be displayed (possibly listing on which profiles the page is currently being used), and once confirmed, any instances of that page should be removed from profiles.

Your Environment