Skip to content

frontend console: rewrite rules cannot be removed #96

@zhyu

Description

@zhyu

The remove button in the Rewrite Rule Editor only removes the rule from the UI without sending an upsert call to the API. So the rule that is expected to be removed will be back after reloading the page.

The remove handler calls the commit function, which calls the onChange prop passed to the component. And the onChange being passed only updates the form. That's why the rule can be removed from the UI but the change is not persisted.

One way to fix it is probably calling the onSave (which sends an upsert call) after the commit call inside the remove handler.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions