Skip to content

Commit f7f5651

Browse files
authored
fix(templates): handle enableLink condition safely (#10728)
1 parent 45a7c8b commit f7f5651

File tree

1 file changed

+3
-1
lines changed
  • templates/website/src/blocks/Content

1 file changed

+3
-1
lines changed

templates/website/src/blocks/Content/config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ const columnFields: Field[] = [
5555
link({
5656
overrides: {
5757
admin: {
58-
condition: (_, { enableLink }) => Boolean(enableLink),
58+
condition: (_data, siblingData) => {
59+
return Boolean(siblingData?.enableLink);
60+
},
5961
},
6062
},
6163
}),

0 commit comments

Comments
 (0)