fix: reset form defaultValues after save to fix dirty detection (#18835)

fixes #18833 
I have put some log video and explained the details in pr #18630.
<img width="929" height="454" alt="image"
src="https://github.com/user-attachments/assets/894d0b89-fb0c-478e-ba42-a4c004a98550"
/>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
BugIsGod
2026-03-22 21:11:02 +00:00
committed by GitHub
parent e95adcc757
commit d16b94bde6
2 changed files with 4 additions and 2 deletions
@@ -269,7 +269,9 @@ export const SubPageNavigation: Story = {
const backButton = await canvas.findByRole('button', { name: 'Go back' });
await userEvent.click(backButton);
expect(await canvas.findByText('Object')).toBeVisible();
await waitFor(() => {
expect(canvas.getByText('Object')).toBeVisible();
});
},
decorators: [
(Story) => {