Skip to content

Commit 35c8b4f

Browse files
committed
update selectors
1 parent 0595b6c commit 35c8b4f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: client/modules/User/components/Collection.jsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ const Collection = ({ collectionId, username }) => {
1717
const { t } = useTranslation();
1818
const dispatch = useDispatch();
1919

20-
const { user, collection, sorting, loading } = useSelector((state) => ({
21-
user: state.user,
22-
collection: getCollection(state, collectionId),
23-
sorting: state.sorting,
24-
loading: state.loading
25-
}));
20+
const user = useSelector((state) => state.user);
21+
const collection = useSelector((state) => getCollection(state, collectionId));
22+
const sorting = useSelector((state) => state.sorting);
23+
const loading = useSelector((state) => state.loading);
2624

2725
useEffect(() => {
2826
dispatch(CollectionsActions.getCollections(username));

0 commit comments

Comments
 (0)