Skip to content

Commit 9348c4b

Browse files
regisbCodeWithEmad
authored andcommitted
feat: lighter build by avoiding full lodash import
Incorrect lodash imports are causing MFEs to import the entire lodash library.
1 parent 5c5ff11 commit 9348c4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/data/redux/submissions/selectors.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _ from 'lodash';
1+
import sortBy from 'lodash/sortBy';
22
import { createSelector } from 'reselect';
33

44
import { StrictDict } from 'utils';
@@ -22,7 +22,7 @@ export const listData = createSelector(
2222
const gradingStatus = (lockStatus === lockStatuses.unlocked ? gradeStatus : lockStatus);
2323
return { gradingStatus, ...rest };
2424
});
25-
return _.sortBy(
25+
return sortBy(
2626
submissionList,
2727
['submissionDate'],
2828
);

0 commit comments

Comments
 (0)