mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 08:19:07 +00:00
Chore: Update useReviewWorkflows calls for settings page
This commit is contained in:
parent
db7704d833
commit
d17e7fb783
@ -44,7 +44,7 @@ export function ReviewWorkflowsPage() {
|
||||
const { put } = useFetchClient();
|
||||
const { formatAPIError } = useAPIErrorHandler();
|
||||
const toggleNotification = useNotification();
|
||||
const { workflows: workflowsData, refetchWorkflow } = useReviewWorkflows();
|
||||
const { workflows, status: workflowStatus, refetch: refetchWorkflow } = useReviewWorkflows();
|
||||
const {
|
||||
status,
|
||||
clientState: {
|
||||
@ -124,8 +124,8 @@ export function ReviewWorkflowsPage() {
|
||||
useInjectReducer(REDUX_NAMESPACE, reducer);
|
||||
|
||||
useEffect(() => {
|
||||
dispatch(setWorkflows({ status: workflowsData.status, data: workflowsData.data }));
|
||||
}, [workflowsData.status, workflowsData.data, dispatch]);
|
||||
dispatch(setWorkflows({ status: workflowStatus, data: workflows }));
|
||||
}, [workflowStatus, workflows, dispatch]);
|
||||
|
||||
useEffect(() => {
|
||||
trackUsage('didViewWorkflow');
|
||||
|
Loading…
x
Reference in New Issue
Block a user