Skip to content

Commit

Permalink
EW-539 Adjust if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneRadtke-Cap committed Oct 27, 2023
1 parent ed2d219 commit c5df7d1
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,10 @@ export class CommonCartridgeExportService {
if (content.component === ComponentType.LERNSTORE) {
if (content.content && Array.isArray(content.content.resources) && content.content.resources.length > 0) {
content.content.resources.map((resource) => {
return {
...commonProps,
type:
version === CommonCartridgeVersion.V_1_3_0
? CommonCartridgeResourceType.WEB_LINK_V3
: CommonCartridgeResourceType.WEB_LINK_V1,
url: resource.url,
};
const url = resource.url;
return version === CommonCartridgeVersion.V_1_3_0
? { ...commonProps, type: CommonCartridgeResourceType.WEB_LINK_V3, url }
: { ...commonProps, type: CommonCartridgeResourceType.WEB_LINK_V1, url };
});
}
}
Expand Down

0 comments on commit c5df7d1

Please sign in to comment.