Skip to content

Commit

Permalink
clog fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gollenia committed Dec 15, 2023
1 parent 0d2c91f commit 05ae374
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/blocks/image/inspector.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,14 @@ const Inspector = (props) => {
return selectSizes;
});

console.log(imageUrl, selectSizes);
console.log(imageUrl, imageSizes);

const setImageSize = (size) => {
const data = image?.media_details?.sizes;
console.log(data);
console.log(size);

if (!data) return;
const dataForSize = data[size];
console.log(dataForSize);

if (!dataForSize) return;
setAttributes({
imageUrl: dataForSize.source_url,
Expand Down

0 comments on commit 05ae374

Please sign in to comment.