Explore: Hide support button (#78710)

Only show support button if there is a dashboard
This commit is contained in:
Kristina 2023-11-28 07:30:58 -06:00 committed by GitHub
parent a49e1ded8f
commit fc4b0faacd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -131,7 +131,7 @@ export function InspectJSONTab({ panel, dashboard, data, onClose }: Props) {
Apply
</Button>
)}
{show === ShowContent.DataFrames && (
{show === ShowContent.DataFrames && dashboard !== undefined && (
<Button className={styles.toolbarItem} onClick={onShowHelpWizard}>
Support
</Button>