mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
parent
d46a94f6ba
commit
cbf7e1a740
@ -23,7 +23,7 @@ export default class KoenigCardProductComponent extends Component {
|
||||
imageMimeTypes = IMAGE_MIME_TYPES;
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user