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:
+3
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user