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.
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
onChangeprop 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 thecommitcall inside theremovehandler.