Closed amnambiar closed 1 year ago
The recent modification enhances the robustness of the processData
function in handling data objects. It now ensures that not only does the data object exist, but also checks if it's an array with at least one element, thereby improving the handling of empty arrays.
File | Summary |
---|---|
.../certification-result/fullReportTable.helper.tsx | The processData function has been updated to check if dataObj is not null or undefined, and if it's an array, it verifies that it contains at least one element. This change improves the handling of empty arrays. |
🐇💻
In the land of code, where logic resides,
A rabbit hops, with wisdom as his guide.
Arrays once empty, no longer slide,
Through conditions unchecked, they no longer hide.
Celebrate this change, for it's a stride,
Towards a codebase, in which we take pride. 🎉🥕
https://input-output.atlassian.net/browse/PLT-7800
BE:
master
Summary by CodeRabbit
processData
function withinfullReportTable.helper.tsx
. The function now correctly handles empty arrays, ensuring that the code only proceeds if the input data is not null or undefined, and if it's an array, it checks that it has at least one element. This change enhances the robustness of the certification results processing, providing a more reliable user experience.