fix: ensure form updates with latest data after mutation

added a form reset to reflect up-to-date data changes and adjusted mutation to prevent id exclusion, ensuring lists are updated properly.
This commit is contained in:
dswbx
2025-09-23 13:47:10 +02:00
parent 49aee37199
commit ffe53d3fb5
2 changed files with 4 additions and 0 deletions

View File

@@ -77,6 +77,9 @@ function DataEntityUpdateImpl({ params }) {
message: `Successfully updated ID ${entityId}`,
color: "green",
});
// make sure form picks up the latest data
Form.reset();
} catch (e) {
setError(e instanceof Error ? e.message : "Failed to update");
}