Skip to content
This repository was archived by the owner on Apr 13, 2020. It is now read-only.

Commit b607b20

Browse files
authored
[BUG-FIX] javascript in cmd doc page does not handle absence of cmd options (#472)
closes microsoft/bedrock#1278
1 parent b160efe commit b607b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/commands/spk.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function showDetails(key) {
9191
);
9292
content = content.replace("@@cmd-description@@", cmd.description);
9393

94-
var options = cmd.options.reduce(function(a, c) {
94+
var options = (cmd.options || []).reduce(function(a, c) {
9595
a += optionTemplate
9696
.replace("@@option@@", sanitize(c.arg))
9797
.replace("@@description@@", sanitize(c.description));

0 commit comments

Comments
 (0)