Skip to content

Commit 8494965

Browse files
authored
fix: show meta filter on explorer only if there is meta (#6570)
1 parent 2623356 commit 8494965

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/web/app/src/pages/target-explorer-deprecated.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function DeprecatedSchemaExplorer(props: {
259259
targetSlug={props.targetSlug}
260260
variant="deprecated"
261261
/>
262-
{latestValidSchemaVersion?.explorer?.metadataAttributes ? (
262+
{latestValidSchemaVersion?.explorer?.metadataAttributes?.length ? (
263263
<MetadataFilter options={latestValidSchemaVersion.explorer.metadataAttributes} />
264264
) : null}
265265
</div>

packages/web/app/src/pages/target-explorer-type.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function TypeExplorerPageContent(props: {
244244
targetSlug={props.targetSlug}
245245
variant="all"
246246
/>
247-
{latestSchemaVersion?.explorer?.metadataAttributes ? (
247+
{latestSchemaVersion?.explorer?.metadataAttributes?.length ? (
248248
<MetadataFilter options={latestSchemaVersion.explorer.metadataAttributes} />
249249
) : null}
250250
</>

packages/web/app/src/pages/target-explorer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function ExplorerPageContent(props: {
221221
targetSlug={props.targetSlug}
222222
variant="all"
223223
/>
224-
{latestValidSchemaVersion?.explorer?.metadataAttributes ? (
224+
{latestValidSchemaVersion?.explorer?.metadataAttributes?.length ? (
225225
<MetadataFilter options={latestValidSchemaVersion.explorer.metadataAttributes} />
226226
) : null}
227227
</>

0 commit comments

Comments
 (0)