Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 1747035

Browse files
author
vikasrohit
committed
AS#117776517568889, Dashboard blog links are broken
-- Fixed
1 parent 1ae9296 commit 1747035

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/services/blog.service.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ import X2JS from 'xml2js'
3131
result.forEach(function(item) {
3232
item.title = $sce.trustAsHtml(item.title.toString())
3333
item.description = $sce.trustAsHtml(item.description.toString())
34+
if (item.link && Array.isArray(item.link) && item.link.length) {
35+
item.link = item.link[0]
36+
}
3437
})
3538

3639
deferred.resolve(result)

0 commit comments

Comments
 (0)