This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new a9013b69eeb HDDS-14422. Handle null values and empty strings for
overview summary cards (#9676)
a9013b69eeb is described below
commit a9013b69eebd7e799d2a864f8c13be96b63b3f47
Author: Ambalika Mukherjee <[email protected]>
AuthorDate: Tue Jan 27 23:02:08 2026 +0530
HDDS-14422. Handle null values and empty strings for overview summary cards
(#9676)
---
.../webapps/recon/ozone-recon-web/src/v2/pages/overview/overview.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/pages/overview/overview.tsx
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/pages/overview/overview.tsx
index c13edcc1407..c35dd06226f 100644
---
a/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/pages/overview/overview.tsx
+++
b/hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/v2/pages/overview/overview.tsx
@@ -71,10 +71,11 @@ const getHealthIcon = (value: string): React.ReactElement
=> {
}
const getSummaryTableValue = (
- value: number | string | undefined,
+ value: number | string | undefined | null,
colType: 'value' | undefined = undefined
): string => {
- if (!value) return 'N/A';
+ if (value === null || value === undefined) return 'N/A';
+ if (typeof value === 'string' && value.trim() === '') return 'N/A';
if (colType === 'value') return String(value as string)
return size(value as number)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]