Skip to content

Commit

Permalink
Add sem-dom metadata for new entry
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Oct 2, 2023
1 parent c71e057 commit e46a2df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/DataEntry/DataEntryTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,9 @@ export default function DataEntryTable(
const addNewEntry = async (): Promise<void> => {
const word = newWord(state.newVern);
const lang = analysisLang.bcp47;
word.senses.push(newSense(state.newGloss, lang, props.semanticDomain));
word.senses.push(
newSense(state.newGloss, lang, makeSemDomCurrent(props.semanticDomain))
);
word.note = newNote(state.newNote, lang);
await addNewWord(word, state.newAudioUrls);
};
Expand Down

0 comments on commit e46a2df

Please sign in to comment.