Skip to content

Commit 239fd2e

Browse files
author
meetDeveloper
committed
Fixed transformation of v2 format to v1 format.
1 parent 2682417 commit 239fd2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/dictionary.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ function transformV2toV1 (data) {
1616
} = entry;
1717

1818
meanings = meanings.reduce((meanings, meaning) => {
19-
let partOfSpeech, rest;
19+
let partOfSpeech, definitions;
2020

2121
({
2222
partOfSpeech,
23-
...rest
23+
definitions
2424
} = meaning);
25-
meanings[partOfSpeech] = rest;
25+
meanings[partOfSpeech] = definitions;
2626

2727
return meanings;
2828
}, {});

0 commit comments

Comments
 (0)