Skip to content

Commit

Permalink
Issue #IQ-IQ-767 fix: Audio is not getting in solution field while pr…
Browse files Browse the repository at this point in the history
…eviewing question
  • Loading branch information
rajnishdargan committed May 9, 2024
2 parents 712eddb + 148ff49 commit 9d88262
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class TransformationService {
processSolutions(data) {
const solutions = _.get(data, 'solutions', []);

if (!_.isEmpty(solutions)) {
if (!_.isEmpty(solutions) && _.isArray(solutions)) {
const updatedSolutions = _.reduce(solutions, (result, solution) => {
result[_.get(solution, 'id')] = this.getSolutionString(solution, _.get(data, 'media', []));
return result;
Expand Down
31 changes: 16 additions & 15 deletions web-component/sunbird-quml-player.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9d88262

Please sign in to comment.