Skip to content

Simple logic rule stays in the JSON after being removed from the form field #6283

@magdalena-source

Description

@magdalena-source

Product versie / Product version

3.4.9 & 3.5.1

Customer reference

Gemeente Westerkwartier

Omschrijf het probleem / Describe the bug

If you first remove a component a simple logic rule was based on, and then the rule itself, it will stay in the JSON and give you the following warning:

"Component X steunt op een niet-bestaande component key Y in de eenvoudige logica."

On the left you can see no (more) simple logic rule applied, but it persists in JSON on the right side of the screenshot.

PS. If you first remove the simple logic rule and then the component it's based on, it will result in removing the component key from the JSON - as expected.

Image

Stappen om te reproduceren / Steps to reproduce

  1. Go to Formulieren on Maykin Test, choose: ' removing a simple logic rule doesn't result in removing it from JSON ' - form
  2. Notice the warning 'Component Name (name) steunt op een niet-bestaande component key doYouHaveAName in de eenvoudige logica.'
  3. Inspect the Name component with no simple logic rules applied
  4. Inspect JSON where the simple logic rule and the component key persist
  5. You can also revert to Version 1 of the form, to inspect where the component key originates from

Verwacht gedrag / Expected behavior

Removing a component and the simple logic rule based on this component key should result in removing the logic rule and the key from JSON.

Which renderer?

new renderer

Screen resolution

None

Device

Desktop

OS

Linux

Browser

Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssue needs to be validated. Remove this label if the issue considered valid.

    Type

    No fields configured for Bug.

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions