Skip to content

Commit 91eb5a1

Browse files
committed
fix: not have standard undefined
1 parent a1e83f5 commit 91eb5a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ translate(data.input, { raw: true, from: data.from.lang, to: data.to.lang, domai
5858
indexOfStandard++;
5959
}
6060
});
61-
var standard = rawObj[0][indexOfStandard];
61+
var standard = rawObj[0][indexOfStandard] || [];
6262

6363
var fromStandard = standard[3] || '';
6464
var fromText = data.from.text.join(' ');

0 commit comments

Comments
 (0)