Skip to content

Commit e3541be

Browse files
authored
fix: forbid text content in head meta and link (#4832)
Users should not be able to add children in meta and link elements.
1 parent 09a1ecd commit e3541be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/sdk-components-react/src/head-link.ws.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { props } from "./__generated__/head-link.props";
99
export const meta: WsComponentMeta = {
1010
category: "hidden",
1111
icon: ResourceIcon,
12-
type: "container",
12+
type: "embed",
1313
constraints: {
1414
relation: "parent",
1515
component: { $eq: "HeadSlot" },

packages/sdk-components-react/src/head-meta.ws.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { props } from "./__generated__/head-meta.props";
99
export const meta: WsComponentMeta = {
1010
category: "hidden",
1111
icon: WindowInfoIcon,
12-
type: "container",
12+
type: "embed",
1313
constraints: {
1414
relation: "parent",
1515
component: { $eq: "HeadSlot" },

0 commit comments

Comments
 (0)