Skip to content

Commit 0adc267

Browse files
committed
🐛 FIX: edge case
1 parent 14570c1 commit 0adc267

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/results.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ const switchResult = require('./switch');
77
*/
88
const threadAns = thread => {
99
const temp = [];
10+
if (typeof thread === 'undefined') {
11+
return temp;
12+
}
13+
1014
thread.map(ans => {
1115
temp.push(ans.body_markdown);
1216
});

0 commit comments

Comments
 (0)