Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions source/website/src/components/Subtitles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -903,12 +903,11 @@ export default {
let response = await this.$Amplify.API.post(apiName, path, requestOpts);
if(response.status == 200) {
// save phrases from the currently selected vocabulary
this.customVocabularySaved = response.data.vocabulary.map(({Phrase, SoundsLike, IPA, DisplayAs}) => ({
this.customVocabularySaved = response.data.vocabulary.map(item => ({
original_phrase: "",
new_phrase: Phrase,
sounds_like: SoundsLike,
IPA: IPA,
display_as: DisplayAs
new_phrase: item["Phrase"],
sounds_like: item["SoundsLike"],
display_as: item["DisplayAs\r"]
}));
} else {
console.log("WARNING: Could not download vocabulary. Loading vocab from vuex state...")
Expand Down