Skip to content

Commit 17ff98f

Browse files
committed
Update api-ja.js
1 parent e60e881 commit 17ff98f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/api-ja.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ ${utils.getHeadTag(apiOverrides[tag])}
7474
`;
7575
}
7676

77-
function renderReadme({ readme, encapsulation }) {
77+
function renderReadme({ readme = '', encapsulation = 'none' }) {
7878
const endIndex = readme.indexOf('\n');
7979
const title = readme.substring(0, endIndex);
8080
const rest = readme.substring(endIndex);
@@ -91,7 +91,7 @@ ${addAdmonitions(rest)}
9191
`;
9292
}
9393

94-
function renderUsage({ usage }) {
94+
function renderUsage({ usage = {} }) {
9595
function capitalizeFirstLetter(string) {
9696
return string.charAt(0).toUpperCase() + string.slice(1);
9797
}
@@ -132,7 +132,7 @@ ${value}
132132
`;
133133
}
134134

135-
function renderProperties({ props: properties }) {
135+
function renderProperties({ props: properties = [] }) {
136136
if (properties.length === 0) {
137137
return '';
138138
}

0 commit comments

Comments
 (0)