Hotfix: Removing image formatter bug
This commit is contained in:
@ -408,12 +408,6 @@ var formatImages = exports.formatImages = function formatImages(data) {
|
||||
if (!sizes.large) sizes.large = sizes.medium;
|
||||
if (!sizes.huge) sizes.huge = sizes.large;
|
||||
|
||||
// No sizes = no images => return nothing
|
||||
if (!sizes.huge && !sizes.large && !sizes.medium && !sizes.small) {
|
||||
console.error(data);
|
||||
return null;
|
||||
}
|
||||
|
||||
return sizes;
|
||||
};
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
2
mopidy_iris/static/app.min.js
vendored
2
mopidy_iris/static/app.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -98,7 +98,7 @@
|
||||
|
||||
// Release details
|
||||
// These are automatically injected to built HTML
|
||||
var build = "1549434521";
|
||||
var build = "1549435960";
|
||||
var version = "3.32.3";
|
||||
|
||||
// Construct the script tag
|
||||
|
||||
@ -323,12 +323,6 @@ export let formatImages = function(data){
|
||||
if (!sizes.large) sizes.large = sizes.medium;
|
||||
if (!sizes.huge) sizes.huge = sizes.large;
|
||||
|
||||
// No sizes = no images => return nothing
|
||||
if (!sizes.huge && !sizes.large && !sizes.medium && !sizes.small){
|
||||
console.error(data);
|
||||
return null;
|
||||
}
|
||||
|
||||
return sizes;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user