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:
parent
6910e5dd3b
commit
6842da7240
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user