Merged in fix/cockpit (pull request #41)
Fix learningPathForUser Approved-by: Daniel Egger
This commit is contained in:
commit
bcc35dd019
|
|
@ -33,7 +33,7 @@ export const useLearningPathStore = defineStore({
|
||||||
learningPathForUser: (state) => {
|
learningPathForUser: (state) => {
|
||||||
return (courseSlug: string, userId: string | number | undefined) => {
|
return (courseSlug: string, userId: string | number | undefined) => {
|
||||||
if (state.learningPaths.size > 0) {
|
if (state.learningPaths.size > 0) {
|
||||||
const learningPathKey = getLearningPathKey(courseSlug, userId);
|
const learningPathKey = getLearningPathKey(`${courseSlug}-lp`, userId);
|
||||||
return state.learningPaths.get(learningPathKey);
|
return state.learningPaths.get(learningPathKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue