diff --git a/client/src/components/chat-popup/chat-popup.component.jsx b/client/src/components/chat-popup/chat-popup.component.jsx index c239288d1..85a862689 100644 --- a/client/src/components/chat-popup/chat-popup.component.jsx +++ b/client/src/components/chat-popup/chat-popup.component.jsx @@ -38,7 +38,7 @@ export function ChatPopupComponent({ const { t } = useTranslation(); const [pollInterval, setpollInterval] = useState(0); const { loading, data, refetch, called } = useQuery(CONVERSATION_LIST_QUERY, { - // ...(pollInterval > 0 ? { pollInterval } : {}), + ...(pollInterval > 0 ? { pollInterval } : {}), }); const fcmToken = sessionStorage.getItem("fcmtoken"); diff --git a/client/src/components/production-board-kanban/production-board-kanban.container.jsx b/client/src/components/production-board-kanban/production-board-kanban.container.jsx index 0154b21d1..5bab6fe57 100644 --- a/client/src/components/production-board-kanban/production-board-kanban.container.jsx +++ b/client/src/components/production-board-kanban/production-board-kanban.container.jsx @@ -22,7 +22,7 @@ const mapStateToProps = createStructuredSelector({ }); export function ProductionBoardKanbanContainer({ bodyshop, currentUser }) { const { refetch, loading, data } = useQuery(QUERY_JOBS_IN_PRODUCTION, { - //pollInterval: 3600000, + pollInterval: 3600000, }); const client = useApolloClient(); const [joblist, setJoblist] = useState([]); diff --git a/client/src/components/production-list-table/production-list-table.container.jsx b/client/src/components/production-list-table/production-list-table.container.jsx index 0a739da74..1a7577d16 100644 --- a/client/src/components/production-list-table/production-list-table.container.jsx +++ b/client/src/components/production-list-table/production-list-table.container.jsx @@ -11,7 +11,7 @@ import _ from "lodash"; export default function ProductionListTableContainer() { const { refetch, loading, data } = useQuery(QUERY_JOBS_IN_PRODUCTION, { - //pollInterval: 3600000, + pollInterval: 3600000, }); const client = useApolloClient(); const [joblist, setJoblist] = useState([]);