Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed unneeded slice() calls from frontend components in subdirectories #8095

Conversation

michaelchadwick
Copy link
Contributor

refs ilios/ilios#5660

Except for a few instances where the data was going to be sort()-ed or reverse()-ed or similar, and we now know that does not allow for modification yet, I removed all the slice() calls I could find.

@@ -47,7 +47,7 @@ export default class LearnerGroupCalendarComponent extends Component {
}
const offerings = await all(mapBy(learnerGroups, 'offerings'));
const flat = offerings.reduce((flattened, obj) => {
return [...flattened, ...obj.slice()];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well this is a bad variable name!

@jrjohnson jrjohnson removed the request for review from stopfstedt August 23, 2024 22:52
@dartajax dartajax merged commit 9e01f2f into ilios:master Aug 26, 2024
41 of 42 checks passed
@michaelchadwick michaelchadwick deleted the frontend-5660-unslice-frontend-subdir-comps branch August 26, 2024 16:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants