Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
multipliedtwice committed Nov 14, 2022
1 parent 806f233 commit 67fea28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/src/components/Editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const Editor = ({onChange, name, value, editor, disabled, settings}) => {
alt: asset.alt,
...(asset.width && {width: asset.width}),
...(asset.height && {height: asset.height}),
...(asset.caption === 'lazy' || asset.name?.includes('lazy') && {loading: 'lazy'}),
...(asset.url?.includes('lazy') || asset.caption === 'lazy' && { loading: 'lazy' }),
})

const handleChangeAssets = assets => {
Expand Down

0 comments on commit 67fea28

Please sign in to comment.