Skip to content

Commit

Permalink
closes #29 use reltt instead of rel
Browse files Browse the repository at this point in the history
  • Loading branch information
lmoertl committed Jan 15, 2024
1 parent e06eba1 commit 27f4ce7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/composables/useMediaSourceSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ export function useMediaSourceSearch() {
return console.error("error on fetching freqml mediaSources");
}
const WordformData = mediaSourceData.Blocks[0]?.Items ?? [];
WordformData.forEach(({ frq, Word, rel }) => {
WordformData.forEach(({ frq, Word, reltt }) => {
query.data.mediaSources.push({
// @ts-ignore
media: Word[0].n,
// todo absolute is here actually also a frequency
absolute: frq,
relative: rel,
relative: reltt,
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/composables/useRegionsSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function useRegionsSearch() {
).Items.map((regionalData: FreqMLRegion) => ({
region: regionalData.Word[0]?.n as unknown as Region,
absolute: escapeZeroSafe(regionalData.frq),
relative: escapeZeroSafe(regionalData.rel),
relative: escapeZeroSafe(regionalData.reltt),
}));

query.loading.regionalFrequencies = false;
Expand Down

0 comments on commit 27f4ce7

Please sign in to comment.