remove calculation data from spreadsheet copy - #4160
Conversation
Signed-off-by: Etienne LESOT <etienne.lesot@rte-france.com>
|
Warning Your free Security trial is over. An organization admin can activate billing to continue. |
|
Warning Review limit reached
Next review available in: 50 minutes Limit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| }, | ||
| }; | ||
|
|
||
| return isCopy |
There was a problem hiding this comment.
you don't need to define cont varaiable isCopy, you can used directly like
csvCase === SpreadsheetSaveOptionId.COPY_CSV ?
gridRef.current?.api.getDataAsCsv(exportParams)
: gridRef.current?.api.exportDataAsCsv(exportParams);
| const gridCsvFunction = (params?: any) => { | ||
| const exportParams = { | ||
| ...params, | ||
| shouldRowBeSkipped: (rowParams: any) => { |
There was a problem hiding this comment.
(owParams: ShouldRowBeSkippedParams)
| ? gridRef.current?.api.getDataAsCsv | ||
| : gridRef.current?.api.exportDataAsCsv; | ||
| const isCopy = csvCase === SpreadsheetSaveOptionId.COPY_CSV; | ||
| const gridCsvFunction = (params?: any) => { |
There was a problem hiding this comment.
i guess the type here (params?: ValueGetterParams)



PR Summary
remove calculation data (average, sum, ...) when copying a sheet from the tab.