Skip to content

Commit

Permalink
Handle images with no thumb path
Browse files Browse the repository at this point in the history
  • Loading branch information
laoneo committed Feb 4, 2022
1 parent beb9659 commit 77f1422
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ export default {
},
computed: {
getURL() {
if(!this.item.thumb_path) {
return '';
}
return this.item.thumb_path.split(Joomla.getOptions('system.paths').rootFull).length > 1
? `${this.item.thumb_path}?${api.mediaVersion}`
: `${this.item.thumb_path}`;
Expand Down

0 comments on commit 77f1422

Please sign in to comment.