Open clemcvlcs opened 1 year ago
@K-Phoen could you please fix that?
Agree on having some Boolean function, maybe a new one like isDashboardSelectorApplicable
to avoid breaking changes.
I workaround the issue in the following way:
<EntitySwitch.Case if={e => !!isDashboardSelectorAvailable(e)}>
I'd like to hide the
EntityGrafanaDashboardsCard
if the annotation is not defined for the entity. This is commonly done in other plugin with someting similar to:But here, the snippet does not work since
isDashboardSelectorAvailable
is not a boolean for some reasons. I believe we should have someting likeinstead of
What do you think ? Please let me know if you want me to open a PR.
Thanks in advance