Skip to content

Commit 09c52c5

Browse files
committed
Remove generate_template for generic in schema viewer
1 parent 535cca0 commit 09c52c5

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

frontend/app/src/entities/schema/ui/schema-viewer.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import type { ModelSchema } from "@/entities/schema/types";
1919
import { isGenericSchema } from "@/entities/schema/utils/is-generic-schema";
2020
import { isNodeSchema } from "@/entities/schema/utils/is-node-schema";
2121
import { isProfileSchema } from "@/entities/schema/utils/is-profile-schema";
22-
import { isTemplateSchema } from "@/entities/schema/utils/is-template-schema";
2322

2423
import { AttributeDisplay } from "./attribute-display";
2524
import { RelationshipDisplay } from "./relationship-display";
@@ -239,7 +238,7 @@ const Properties = ({ schema }: { schema: ModelSchema }) => {
239238
{!isProfileSchema(schema) && (
240239
<PropertyRow title="Generate profile" value={schema.generate_profile} />
241240
)}
242-
{!isTemplateSchema(schema) && (
241+
{isNodeSchema(schema) && (
243242
<PropertyRow title="Generate template" value={schema.generate_template} />
244243
)}
245244
</div>

frontend/app/tests/fake/schema.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,6 @@ export const generateGenericSchema = (overrides?: Partial<GenericSchema>): Gener
584584
],
585585
hierarchical: false,
586586
generate_profile: true,
587-
generate_template: false,
588587
used_by: ["InfraInterfaceL2", "InfraInterfaceL3", "InfraLagInterfaceL2", "InfraLagInterfaceL3"],
589588
kind: "InfraInterface",
590589
hash: "46e4f878e399f34035224421ab419517",

0 commit comments

Comments
 (0)