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

Totalrow copy #204

Merged
merged 1 commit into from
Feb 6, 2025
Merged

Totalrow copy #204

merged 1 commit into from
Feb 6, 2025

Conversation

sokumon
Copy link
Contributor

@sokumon sokumon commented Feb 2, 2025

Screen.Recording.2025-02-02.at.8.45.41.PM.mov

Comment on lines 566 to 568
if (rowIndex === undefined) {
// this must be a footer
const {isTotalRow} = $.data($cell1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Instead of checking if rowIndex is undefined, why not extract isToTalRow in the first place on line 565 and check

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also a special case for total row doesn't make sense here. Instead just grab the value of the cell and call copyToClipboard once

@netchampfaris netchampfaris merged commit f05049c into frappe:master Feb 6, 2025
1 check passed
Copy link

github-actions bot commented Feb 6, 2025

🎉 This PR is included in version 1.17.18 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants