mirror of
https://github.com/strapi/strapi.git
synced 2025-10-30 09:23:28 +00:00
Settings: Track didViewWorkflow event only when component mounts
This commit is contained in:
parent
fda4cbea73
commit
09c824e1b1
@ -122,7 +122,8 @@ export function ReviewWorkflowsPage() {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
trackUsage('didViewWorkflow');
|
trackUsage('didViewWorkflow');
|
||||||
}, [trackUsage]);
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CheckPagePermissions permissions={adminPermissions.settings['review-workflows'].main}>
|
<CheckPagePermissions permissions={adminPermissions.settings['review-workflows'].main}>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user