Merge pull request #11497 from storybookjs/fix/composition-empty-versions

Composition: Don't show versions dropdown if there are no versions
This commit is contained in:
Michael Shilman 2020-07-11 16:20:06 +08:00 committed by GitHub
commit 6c0e00522d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,7 +192,7 @@ export const RefIndicator = forwardRef<
</IndicatorClickTarget>
</WithTooltip>
{ref.versions ? (
{ref.versions && Object.keys(ref.versions).length ? (
<WithTooltip
placement="bottom-start"
trigger="click"