Skip to content

Commit

Permalink
Issue #PS-0000 fix: Fixed showing Questionset on course planner
Browse files Browse the repository at this point in the history
  • Loading branch information
itsvick committed Dec 16, 2024
1 parent 69b0002 commit 06c9d02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/PlayerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export const fetchBulkContents = async (identifiers: string[]) => {
console.log('response =====>', response);
const result = response?.data?.result;
if (response?.data?.result?.QuestionSet?.length) {
result.content = [...result.content, ...result.QuestionSet];
// result.content = [...result.content, ...result.QuestionSet];
const contents = result?.content ? [...result.content, ...result.QuestionSet] : [...result.QuestionSet]
result.content = contents;
}

return result.content;
Expand Down

0 comments on commit 06c9d02

Please sign in to comment.