mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 05:50:35 +03:00
parent
d46a94f6ba
commit
cbf7e1a740
@ -23,7 +23,7 @@ export default class KoenigCardProductComponent extends Component {
|
|||||||
imageMimeTypes = IMAGE_MIME_TYPES;
|
imageMimeTypes = IMAGE_MIME_TYPES;
|
||||||
|
|
||||||
get isEmpty() {
|
get isEmpty() {
|
||||||
const {productTitle, productDescription, productUrl, productButton, productImageSrc, productRatingEnabled, productButtonEnabled, productStarRating} = this.args.payload;
|
const {productTitle, productDescription, productUrl, productButton, productImageSrc, productRatingEnabled, productButtonEnabled} = this.args.payload;
|
||||||
|
|
||||||
return isBlank(productTitle) && isBlank(productDescription) && (!productButtonEnabled || (isBlank(productUrl) || isBlank(productButton))) && isBlank(productImageSrc) && !productRatingEnabled;
|
return isBlank(productTitle) && isBlank(productDescription) && (!productButtonEnabled || (isBlank(productUrl) || isBlank(productButton))) && isBlank(productImageSrc) && !productRatingEnabled;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user