open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
36 stars 26 forks source link

Cannot remove simple logic (+ warning) if dependency is removed from form #4621

Open LaurensBurger opened 2 months ago

LaurensBurger commented 2 months ago

Product versie / Product version

2.7.x - latest

Customer reference

LV 187

Omschrijf het probleem / Describe the bug

When the component simple logic depends on is removed, a warning is shown to the form builder. The form builder should either replace the (now deleted) component in the logic or could remove the logic rule. When they remove the logic rule, the warning will still show, and can only be resolved by editing the json.

simple logic: image

remove map: image

remove logic: image

The warning still shows, because teksveld component still contains:

  "conditional": {
    "when": "map",
    "show": null,
    "eq": ""
  },

Stappen om te reproduceren / Steps to reproduce

No response

Verwacht gedrag / Expected behavior

No response

Screen resolution

None

Device

None

OS

None

Browser

No response

joeribekker commented 2 months ago

Refinement: Fix is probably to make sure the component dropdown displays that it can't find the referenced component and make sure it is clearable