removing unecessary console.log
This commit is contained in:
parent
4b37855deb
commit
fd9a7ee1c2
|
|
@ -1 +1 @@
|
|||
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => 'b2497f3adddcc923a91c');
|
||||
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n'), 'version' => '1c6a4d9d6b4b9015b004');
|
||||
|
|
|
|||
|
|
@ -152,7 +152,6 @@ function Edit({
|
|||
postType
|
||||
} = attributes;
|
||||
const page = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.useSelect)(select => select("core").getEntityRecord("postType", postType, relatedPostId));
|
||||
console.log("page", page);
|
||||
const pageIconUrl = (0,_wordpress_data__WEBPACK_IMPORTED_MODULE_4__.useSelect)(select => {
|
||||
if (postType === "page") {
|
||||
if (!page?.acf?.page_icon) return null;
|
||||
|
|
@ -160,7 +159,6 @@ function Edit({
|
|||
}
|
||||
if (postType === "parcours") {
|
||||
if (!page?.acf?.step_icon) return null;
|
||||
console.log(page);
|
||||
return select("core").getMedia(page?.acf?.step_icon)?.source_url;
|
||||
}
|
||||
}, [page]);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -9,7 +9,6 @@ export default function Edit({ attributes, setAttributes }) {
|
|||
const page = useSelect((select) =>
|
||||
select("core").getEntityRecord("postType", postType, relatedPostId)
|
||||
);
|
||||
console.log("page", page);
|
||||
|
||||
const pageIconUrl = useSelect(
|
||||
(select) => {
|
||||
|
|
@ -19,7 +18,6 @@ export default function Edit({ attributes, setAttributes }) {
|
|||
}
|
||||
if (postType === "parcours") {
|
||||
if (!page?.acf?.step_icon) return null;
|
||||
console.log(page);
|
||||
return select("core").getMedia(page?.acf?.step_icon)?.source_url;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user