-
Notifications
You must be signed in to change notification settings - Fork 0
Initial Commit #1
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
base: main
Are you sure you want to change the base?
Conversation
force-app/main/default/lwc/taskChecklistPanel/taskChecklistPanel.js
Outdated
Show resolved
Hide resolved
force-app/main/default/lwc/taskChecklistPanel/taskChecklistPanel.js
Outdated
Show resolved
Hide resolved
force-app/main/default/lwc/taskChecklistPanel/taskChecklistPanel.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Repeated logic could be abstracted to another function:
updateTaskListAndProgress(result) {
this.taskList = result;
this.calculateProgress();
this.taskIdsToUpdate = [];
this.isSubmitBtnDisabled = false;
}
| console.error("Error updating and fetching data:", error); | ||
| this.isSubmitBtnDisabled = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a global error handler and UI alert class these should be passed to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not yet
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also order the functions as You would read them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also also, where is Your test? 🧐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still gotta learn the skill of Jest
No description provided.