1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-16 13:58:22 +01:00

Fix possible issue with accessing parent resolver in collection(in case it doesn't have one)

This commit is contained in:
Anton Romanov 2016-11-30 12:17:38 -08:00
parent 6910e5dd3b
commit 6842da7240

View File

@ -1766,7 +1766,7 @@ Tomahawk.Collection = {
this.settings.capabilities = [Tomahawk.Collection.BrowseCapability.Artists,
Tomahawk.Collection.BrowseCapability.Albums,
Tomahawk.Collection.BrowseCapability.Tracks];
if (!this.settings.weight && this.resolver.settings.weight) {
if (!this.settings.weight && this.resolver && this.resolver.settings.weight) {
this.settings.weight = this.resolver.settings.weight;
}
return this.settings;