Skip to content

Commit 3125a3d

Browse files
committed
rebuilt
1 parent 849d3cf commit 3125a3d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dist/swagger-ui.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ Handlebars.registerHelper('renderTextParam', function(param) {
274274
idAtt = ' id=\'' + param.valueId + '\'';
275275
}
276276

277-
defaultValue = defaultValue.replace(/'/g,''');
277+
if (typeof defaultValue === 'string' || defaultValue instanceof String) {
278+
defaultValue = defaultValue.replace(/'/g,''');
279+
}
278280

279281
if(isArray) {
280282
result = '<textarea class=\'body-textarea' + (param.required ? ' required' : '') + '\' name=\'' + param.name + '\'' + idAtt + dataVendorExtensions;

0 commit comments

Comments
 (0)