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 { put } = useFetchClient();
|
||||||
const { formatAPIError } = useAPIErrorHandler();
|
const { formatAPIError } = useAPIErrorHandler();
|
||||||
const toggleNotification = useNotification();
|
const toggleNotification = useNotification();
|
||||||
const { workflows: workflowsData, refetchWorkflow } = useReviewWorkflows();
|
const { workflows, status: workflowStatus, refetch: refetchWorkflow } = useReviewWorkflows();
|
||||||
const {
|
const {
|
||||||
status,
|
status,
|
||||||
clientState: {
|
clientState: {
|
||||||
@ -124,8 +124,8 @@ export function ReviewWorkflowsPage() {
|
|||||||
useInjectReducer(REDUX_NAMESPACE, reducer);
|
useInjectReducer(REDUX_NAMESPACE, reducer);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
dispatch(setWorkflows({ status: workflowsData.status, data: workflowsData.data }));
|
dispatch(setWorkflows({ status: workflowStatus, data: workflows }));
|
||||||
}, [workflowsData.status, workflowsData.data, dispatch]);
|
}, [workflowStatus, workflows, dispatch]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
trackUsage('didViewWorkflow');
|
trackUsage('didViewWorkflow');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user