diff --git a/packages/web/app/src/pages/target-history-version.tsx b/packages/web/app/src/pages/target-history-version.tsx index d9823ca4f..bf87d477f 100644 --- a/packages/web/app/src/pages/target-history-version.tsx +++ b/packages/web/app/src/pages/target-history-version.tsx @@ -13,6 +13,7 @@ import { DiffEditor, Spinner } from '@/components/v2'; import { DiffIcon } from '@/components/v2/icon'; import { FragmentType, graphql, useFragment } from '@/gql'; import { CriticalityLevel, ProjectType } from '@/gql/graphql'; +import { cn } from '@/lib/utils'; import { CheckCircledIcon, CrossCircledIcon, @@ -168,6 +169,7 @@ function SchemaVersionView(props: { targetId={props.targetId} schemaVersion={schemaVersion} projectType={props.projectType} + hasContracts={!!schemaVersion.contractVersions?.edges} /> )} @@ -222,6 +224,7 @@ function DefaultSchemaVersionView(props: { organizationId: string; projectId: string; targetId: string; + hasContracts: boolean; }) { const schemaVersion = useFragment( DefaultSchemaVersionView_SchemaVersionFragment, @@ -280,7 +283,12 @@ function DefaultSchemaVersionView(props: { <> setSelectedView(value)}> - + {availableViews.map(item => (