Skip to content

Commit

Permalink
Update src/api/searchApi.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Gunnar Velle <[email protected]>
  • Loading branch information
katrinewi and gunnarvelle authored Aug 28, 2023
1 parent d17fbfb commit 6ca87c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/searchApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function groupSearch(
resources: result.results.map(contentTypeResult => {
const path =
contentTypeResult.contexts.find(c =>
subjects.length === 1 ? c.subjectId === subjects[0] : c.isPrimary,
subjects.length === 1 ? c.rootId === subjects[0] : c.isPrimary,
)?.path ?? contentTypeResult.paths?.[0];

const isLearningpath =
Expand Down

0 comments on commit 6ca87c9

Please sign in to comment.