Skip to content

Commit cd6285a

Browse files
authored
fix: null type lost in API table (#1643)
1 parent 733bade commit cd6285a

File tree

1 file changed

+1
-1
lines changed
  • src/client/theme-default/builtins/API

1 file changed

+1
-1
lines changed

src/client/theme-default/builtins/API/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const HANDLERS = {
2020
return this.getValidClassName(prop) || prop.type;
2121
} else if ('const' in prop) {
2222
// const value
23-
return prop.const;
23+
return `${prop.const}`;
2424
} else if ('oneOf' in prop) {
2525
// oneOf value
2626
return this.oneOf(prop);

0 commit comments

Comments
 (0)