fix(ui): checks truthy value for last ingested (#10840)

Co-authored-by: Harshal Sheth <hsheth2@gmail.com>
This commit is contained in:
Pinaki Bhattacharjee 2024-08-20 14:43:26 +05:30 committed by GitHub
parent 7d08ee2ba1
commit a2ed732c15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ export const EntitySidebar = <T,>({ sidebarSections, topSection }: Props) => {
return (
<>
{topSection && <topSection.component key={`${topSection.component}`} properties={topSection.properties} />}
{entityData?.lastIngested && (
{!!entityData?.lastIngested && (
<LastIngestedSection>
<LastIngested lastIngested={entityData.lastIngested} />
</LastIngestedSection>