Skip to content

Commit

Permalink
Fix old typo in function
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Jan 9, 2025
1 parent 9f95443 commit dc31a2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function prepareEntriesForUi(entries: IEntry[]): void {
}
}

function preparePartsOfSpeedForUi(partsOfSpeech: IPartOfSpeech[]): void {
function preparePartsOfSpeechForUi(partsOfSpeech: IPartOfSpeech[]): void {
partsOfSpeech.forEach(pos => {
pos.id = pos.name['__key'];
});
Expand Down Expand Up @@ -84,7 +84,7 @@ export class LfClassicLexboxApi implements IMiniLcmJsInvokable {
async getPartsOfSpeech(): Promise<IPartOfSpeech[]> {
const result = await fetch(`/api/lfclassic/${this.projectCode}/parts-of-speech`);
const partsOfSpeech = (await result.json()) as IPartOfSpeech[];
preparePartsOfSpeedForUi(partsOfSpeech);
preparePartsOfSpeechForUi(partsOfSpeech);
return partsOfSpeech;
}

Expand Down

0 comments on commit dc31a2f

Please sign in to comment.