Skip to content

Commit

Permalink
fix: ensure component needs placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Oct 26, 2020
1 parent feeaa48 commit 029f2cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/nuxt-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
}

let placeholder = null
if (this.meta.placeholder) {
if (this.placeholder && this.meta.placeholder) {
placeholder = h('img', {
class: '__nim_p',
attrs: {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/nuxt-picture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default {
})

let placeholder = null
if (this.meta.placeholder) {
if (this.placeholder && this.meta.placeholder) {
placeholder = h('img', {
class: '__nim_p',
attrs: {
Expand Down

0 comments on commit 029f2cf

Please sign in to comment.