From f2c652c1e9523621687390f48005637c4ba30794 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Thu, 17 Sep 2015 16:27:57 -0700 Subject: [PATCH] Fix accidentally deleted line --- data/js/tomahawk.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/js/tomahawk.js b/data/js/tomahawk.js index 2f23b30fd..ee25992e9 100644 --- a/data/js/tomahawk.js +++ b/data/js/tomahawk.js @@ -268,8 +268,7 @@ Tomahawk.Resolver = Tomahawk.extend(TomahawkResolver, { var merged = []; return merged.concat.apply(merged,collectionResults); }).then(function(collectionResults) { - if(typeof results === 'undefined') - results = []; + Promise.resolve(that.resolve({artist: artist, album: album, track:title})).then(function(results){ Tomahawk.addTrackResults({ 'qid': qid, 'results': that._convertUrls(results.concat(collectionResults))