Skip to content

Commit db940e5

Browse files
author
Adriána Kohanová
committed
#454 Store and retrieve project actions in/from the backend
1 parent 53207bc commit db940e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/components/tracking/trackingModal.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ export const TrackingModal = memo(({ openModal, onModalClose }) => {
4747
const orderedActionList = (actionList && actionList.sort((a, b) => a.timestamp - b.timestamp)) || [];
4848

4949
const loadAllActions = useCallback(() => {
50-
if (openModal === true && actionList && actionList.length <= 0) {
50+
if (openModal === true) {
5151
dispatch(setProjectTruckingActions());
5252
}
53-
}, [dispatch, actionList, openModal]);
53+
}, [dispatch, openModal]);
5454

5555
useEffect(() => {
5656
loadAllActions();
57-
}, [actionList, loadAllActions]);
57+
}, [loadAllActions]);
5858

5959
if (openModal === undefined) {
6060
console.log('undefined openModal');

0 commit comments

Comments
 (0)