style: fix linting issues met ESLint
This commit is contained in:
parent
a30c4d0d32
commit
aa1a85e64e
24 changed files with 76 additions and 90 deletions
|
@ -23,9 +23,7 @@ export async function getLearningPaths(
|
|||
? hruids.map(String)
|
||||
: [String(hruids)];
|
||||
} else if (themeKey) {
|
||||
const theme = themes.find((t) => {
|
||||
return t.title === themeKey;
|
||||
});
|
||||
const theme = themes.find((t) => t.title === themeKey);
|
||||
if (theme) {
|
||||
hruidList = theme.hruids;
|
||||
} else {
|
||||
|
@ -39,9 +37,7 @@ export async function getLearningPaths(
|
|||
res.json(searchResults);
|
||||
return;
|
||||
} else {
|
||||
hruidList = themes.flatMap((theme) => {
|
||||
return theme.hruids;
|
||||
});
|
||||
hruidList = themes.flatMap((theme) => theme.hruids);
|
||||
}
|
||||
|
||||
const learningPaths = await learningPathService.fetchLearningPaths(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue