Skip to content

Commit

Permalink
do not execute artwork if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
vikbez committed Mar 30, 2016
1 parent 3aa119c commit ab3dcbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app_sources/Artwork/directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ app.directive('artwork', ['$q', 'artworks', '$timeout',

// Update artwork on source change
scope.$watch('src', function(src) {
if (!src) return;
scope.artwork = artworks(src);
});

Expand Down

0 comments on commit ab3dcbd

Please sign in to comment.