Skip to content

Commit 390be90

Browse files
authored
fix: show deprecated schema in explorer when there is no usage reported (#6532)
1 parent 2507a9b commit 390be90

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { SchemaVariantFilter } from '@/components/target/explorer/filter';
66
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
77
import { Button } from '@/components/ui/button';
88
import { DateRangePicker, presetLast7Days } from '@/components/ui/date-range-picker';
9-
import { EmptyList, noSchemaVersion } from '@/components/ui/empty-list';
9+
import { noSchemaVersion } from '@/components/ui/empty-list';
1010
import { Link } from '@/components/ui/link';
1111
import { Meta } from '@/components/ui/meta';
1212
import { Subtitle, Title } from '@/components/ui/page';
@@ -351,24 +351,11 @@ function ExplorerDeprecatedSchemaPageContent(props: {
351351
}
352352

353353
const currentOrganization = query.data?.organization?.organization;
354-
const hasCollectedOperations = query.data?.hasCollectedOperations === true;
355354

356355
if (!currentOrganization) {
357356
return null;
358357
}
359358

360-
if (!hasCollectedOperations) {
361-
return (
362-
<div className="py-8">
363-
<EmptyList
364-
title="Hive is waiting for your first collected operation"
365-
description="You can collect usage of your GraphQL API with Hive Client"
366-
docsUrl="/features/usage-reporting"
367-
/>
368-
</div>
369-
);
370-
}
371-
372359
return (
373360
<DeprecatedSchemaExplorer
374361
dataRetentionInDays={currentOrganization.rateLimit.retentionInDays}

0 commit comments

Comments
 (0)