Skip to content

Commit eb7ba2e

Browse files
committed
fix duplicated sample response
1 parent 6c267cb commit eb7ba2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

assets/scripts/responses.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,8 @@ function getResponseExample(endpoint) {
887887
}
888888

889889
function getSampleResponse(url, id) {
890-
if (url == `'null'`) {
890+
if ($(`#${id}`).html()) return;
891+
if (!url.startsWith('https://')) {
891892
$(`#${id}`).html(`<pre>This endpoint doesn't support sample response. :(</pre>`);
892893
return;
893894
}

0 commit comments

Comments
 (0)