Skip to content

Commit ae9bf9e

Browse files
authored
Link to global structs & enum page for enum properties (#9590)
This had an entry in the linkMap, but was never hooked up and forgotten. It has the obvious limitation of not going to the specific enum you're looking for, but this is the same for struct properties anyway.
1 parent 0a48f17 commit ae9bf9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/common/src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function getTypeInfo(typeName: KnownType): TypeInfo {
126126
};
127127
case "enum":
128128
return {
129-
href: "", // No need to link here!
129+
href: linkMap.EnumType.href,
130130
defaultValue: "the first enum value",
131131
};
132132
case "float":

ui-libraries/material/docs/src/utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export function getTypeInfo(typeName: KnownType): TypeInfo {
120120
};
121121
case "enum":
122122
return {
123-
href: "", // No need to link here!
123+
href: linkMap.EnumType.href,
124124
defaultValue: "the first enum value",
125125
};
126126
case "float":

0 commit comments

Comments
 (0)