From ab3dcbd34c21bb8f892b07cf51ad1d7e78bf62e3 Mon Sep 17 00:00:00 2001 From: Romain Gay Date: Wed, 30 Mar 2016 10:08:44 +0200 Subject: [PATCH] do not execute artwork if empty --- app_sources/Artwork/directive.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app_sources/Artwork/directive.js b/app_sources/Artwork/directive.js index 3743dce..9851c25 100644 --- a/app_sources/Artwork/directive.js +++ b/app_sources/Artwork/directive.js @@ -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); });