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

Remove Programs render modifiers #8189

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

michaelchadwick
Copy link
Contributor

}

// @action
Copy link
Member

Choose a reason for hiding this comment

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

kruft, please remove.

@action
load(element, [programYear]) {
this.objectiveCount = programYear.hasMany('programYearObjectives').ids().length;
constructor() {
Copy link
Member

Choose a reason for hiding this comment

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

this can be further simplified. we don't need to set objectiveCount as component attribute.

instead, a getter would suffice here:

Suggested change
constructor() {
get objectivesCount() {
return this.args.programYear.hasMany('programYearObjectives').ids().length;
}

then, remove the tracked property by the same name further up in the class, and we're good to go.

@stopfstedt stopfstedt removed the request for review from jrjohnson October 19, 2024 00:17
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.

2 participants