Commit b4d6864a authored by Nate Graham's avatar Nate Graham
Browse files

Handle the case where model.metadataModifiableRole is undefined

In this case we can assume false, just like the case where we don't even
have a model in the first place.
parent 5d8c2630
......@@ -161,7 +161,7 @@ Kirigami.Page {
isSingleDiscAlbum: model.isSingleDiscAlbum !== undefined ? model.isSingleDiscAlbum : true
isValid: model.isValid
isPlaying: model.isPlaying
metadataModifiableRole: model ? model.metadataModifiableRole : false
metadataModifiableRole: model && model.metadataModifiableRole ? model.metadataModifiableRole : false
listView: playListView
}
}
......@@ -277,7 +277,7 @@ Kirigami.Page {
isSingleDiscAlbum: model && model.isSingleDiscAlbum !== undefined ? model.isSingleDiscAlbum : true
isValid: model && model.isValid
isPlaying: model ? model.isPlaying : false
metadataModifiableRole: model ? model.metadataModifiableRole : false
metadataModifiableRole: model && model.metadataModifiableRole ? model.metadataModifiableRole : false
hideDiscNumber: model && model.isSingleDiscAlbum
listView: playListView
......
......@@ -87,7 +87,7 @@ ScrollView {
isSingleDiscAlbum: model.isSingleDiscAlbum !== undefined ? model.isSingleDiscAlbum : true
isValid: model.isValid
isPlaying: model.isPlaying
metadataModifiableRole: model.metadataModifiableRole
metadataModifiableRole: model.metadataModifiableRole ? model.metadataModifiableRole : false
}
add: Transition {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment