Merge pull request #11624 from strapi/ctb/fix-compos-creation

[v4] CTB: Clear modal state when closing it
This commit is contained in:
cyril lopez 2021-11-18 14:42:54 +01:00 committed by GitHub
commit 3f4f7bdf08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,6 +278,8 @@ const FormModal = () => {
forTarget,
});
}
} else {
dispatch({ type: RESET_PROPS });
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [