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

feat: [sc-63506] Flip -s to 0s in the interest summary export #1097

Merged
merged 2 commits into from
Dec 17, 2024
Merged

Conversation

haislip
Copy link
Contributor

@haislip haislip commented Dec 16, 2024

@haislip haislip changed the title feat: [sc-63506] Flip "-"s to "0"s in the interest summary export feat: [sc-63506] Flip -s to 0s in the interest summary export Dec 17, 2024
@haislip haislip marked this pull request as ready for review December 17, 2024 14:00
@@ -246,7 +247,7 @@ export class GridTableApiImpl<R extends Kinded> implements GridTableApi<R> {
// Anything not isJSX (like a string) we can put into the CSV directly
if (!isJSX(content)) return content;
// Otherwise use the value/sortValue values
return cell.value ? maybeApply(cell.value) : cell.sortValue ? maybeApply(cell.sortValue) : "-";
return isDefined(cell.value) ? maybeApply(cell.value) : cell.sortValue ? maybeApply(cell.sortValue) : "-"; // Do we need the "-" handling unclear if we use it ever
Copy link
Contributor

Choose a reason for hiding this comment

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

Makes sense! Maybe do the same isDefined check on cell.sortValue in the next ternary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking that at first, but then the only places I saw in testing that we used that was where the sortValue was the name and not actually undefined.... so I'm not entirely sure when/where we would us that. I'm also not entirely sure when we would hit that "-" anymore, given my 2 new test cases of null/undefined as the value don't hit it either.

@haislip haislip merged commit 653728f into main Dec 17, 2024
7 checks passed
@haislip haislip deleted the sc-63506 branch December 17, 2024 14:50
homebound-team-bot pushed a commit that referenced this pull request Dec 17, 2024
## [2.375.0](v2.374.0...v2.375.0) (2024-12-17)

### Features

* [sc-63506] Flip -s to 0s in the interest summary export ([#1097](#1097)) ([653728f](653728f))
@homebound-team-bot
Copy link

🎉 This PR is included in version 2.375.0 🎉

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.

3 participants