diff --git a/client/src/components/DashboardPage/Dashboard.tsx b/client/src/components/DashboardPage/Dashboard.tsx index 8ffeabf..861f721 100644 --- a/client/src/components/DashboardPage/Dashboard.tsx +++ b/client/src/components/DashboardPage/Dashboard.tsx @@ -26,7 +26,7 @@ export function Dashboard() {
-

+

Ces 7 derniers jours @@ -37,7 +37,7 @@ export function Dashboard() {
-

+
diff --git a/client/src/components/DecisionSupportFilePage/TimelinePanel.tsx b/client/src/components/DecisionSupportFilePage/TimelinePanel.tsx index a537abf..5f8b202 100644 --- a/client/src/components/DecisionSupportFilePage/TimelinePanel.tsx +++ b/client/src/components/DecisionSupportFilePage/TimelinePanel.tsx @@ -19,7 +19,7 @@ export const TimelinePanel: FunctionComponent = ({ dsf }) => return (
-

+

Suivi des opérations @@ -27,7 +27,7 @@ export const TimelinePanel: FunctionComponent = ({ dsf }) =>
-

+
diff --git a/client/src/components/WorkgroupPage/TimelinePanel.tsx b/client/src/components/WorkgroupPage/TimelinePanel.tsx index 0f52f62..4de95d7 100644 --- a/client/src/components/WorkgroupPage/TimelinePanel.tsx +++ b/client/src/components/WorkgroupPage/TimelinePanel.tsx @@ -20,7 +20,7 @@ export const TimelinePanel: FunctionComponent = ({ workgroup return (
-

+

Suivi des opérations @@ -28,7 +28,7 @@ export const TimelinePanel: FunctionComponent = ({ workgroup
-

+
diff --git a/client/src/gql/queries/authorization.tsx b/client/src/gql/queries/authorization.tsx index 31293ee..52ecc65 100644 --- a/client/src/gql/queries/authorization.tsx +++ b/client/src/gql/queries/authorization.tsx @@ -8,10 +8,16 @@ export const QUERY_IS_AUTHORIZED = gql` `; export function useIsAuthorizedQuery>(options: QueryHookOptions = {}) { + options = Object.assign({ + fetchPolicy: 'cache-and-network' + }, options); return useQuery(QUERY_IS_AUTHORIZED, options); } export function useIsAuthorized>(options: QueryHookOptions = {}, defaultValue = false) { + options = Object.assign({ + fetchPolicy: 'cache-and-network' + }, options); const { data, loading, error } = useGraphQLData( QUERY_IS_AUTHORIZED, 'isAuthorized', defaultValue, options );