solarwinds / nova

Apache License 2.0
23 stars 19 forks source link

Rendering undefined values #719

Open shekela opened 1 week ago

shekela commented 1 week ago

Frontend Pull Request Description

Hey, I created function which renders the specific values for undefined or false values. In the case the data contains null, undefined, false and etc. In case of undefined or null data was not rendering values after null or undefined because those values do not have properties, so it was error in console, so I mapped data and when I was rendering the data I turned undefined or null values to string "undefined" or "null" and it continued working. I render string and "-" for false or undefined values. Strings can be changed to specific values whatever will be necessary from function. I run spec.ts file also with additional case and it doesn't break any other code. There are no errors in console.

Screenshot 2024-10-07 124515

Screenshot_7-10-2024_123143_localhost

Checklist

Screenshots (if applicable)

Additional Context (if necessary)