Skip to content

Commit

Permalink
Fix issue where only a maximum of 100 concordances were loaded
Browse files Browse the repository at this point in the history
Increased to 10000 because we need to give some limit.
  • Loading branch information
stefandesu committed Mar 4, 2024
1 parent d26eff3 commit b8467d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ export async function loadAncestors(concept, { registry, force = false } = {}) {
export const concordances = ref([])
export async function loadConcordances() {
try {
const result = _.flatten(await Promise.all(store.getters.concordanceRegistries.map(r => r.getConcordances())))
const result = _.flatten(await Promise.all(store.getters.concordanceRegistries.map(r => r.getConcordances({ params: { limit: 10000 } }))))
const previousLength = concordances.value?.length
_.forEach(result, (concordance, index) => {
// Set values of concordance array
Expand Down

0 comments on commit b8467d9

Please sign in to comment.