Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
Don't display a single Metadata panel when panelsData is not yet init…
Browse files Browse the repository at this point in the history
…ialised
  • Loading branch information
Blaumaus committed Aug 11, 2024
1 parent d0bda83 commit d95016d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/pages/Project/View/ViewProject.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5000,16 +5000,18 @@ const ViewProject = ({
/>
)
})}
<Metadata
customs={panelsData.customs}
properties={panelsData.properties}
filters={filters}
onFilter={filterHandler}
chartData={chartData}
customTabs={_filter(customPanelTabs, (tab) => tab.panelID === 'ce')}
getCustomEventMetadata={getCustomEventMetadata}
getPropertyMetadata={_getPropertyMetadata}
/>
{!_isEmpty(panelsData.data) && (
<Metadata
customs={panelsData.customs}
properties={panelsData.properties}
filters={filters}
onFilter={filterHandler}
chartData={chartData}
customTabs={_filter(customPanelTabs, (tab) => tab.panelID === 'ce')}
getCustomEventMetadata={getCustomEventMetadata}
getPropertyMetadata={_getPropertyMetadata}
/>
)}
</div>
</div>
)}
Expand Down

0 comments on commit d95016d

Please sign in to comment.