Skip to content

Commit

Permalink
Merge pull request #75 from lukashornych/dev
Browse files Browse the repository at this point in the history
fix: cannot handle facet summaries for non-grouped references after h…
  • Loading branch information
lukashornych authored Nov 23, 2023
2 parents 9db56f9 + f5bcdc2 commit 0444919
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ export abstract class JsonFacetSummaryVisualiserService<VS extends JsonResultVis
if (referenceSchema == undefined) {
throw new UnexpectedError(undefined, `Reference '${referenceName}' not found in entity '${entitySchema.name}'.`)
}
referencesWithGroups.push([referenceSchema, facetSummaryResult[referenceName]])
const groups = facetSummaryResult[referenceName]
if (groups instanceof Array) {
referencesWithGroups.push([referenceSchema, groups])
} else {
referencesWithGroups.push([referenceSchema, [groups]])
}
}
return referencesWithGroups
}
Expand Down

0 comments on commit 0444919

Please sign in to comment.