REFACTOR Removinf unecessary console.log

This commit is contained in:
Antoine M 2025-10-14 11:34:32 +02:00
parent 2659311e7a
commit 106c9adcbe
4 changed files with 2 additions and 6 deletions

View File

@ -1 +1 @@
<?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => 'f9b21b66fbfc32799aca'); <?php return array('dependencies' => array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-primitives'), 'version' => '2721f0bd0927b41830cc');

View File

@ -124,7 +124,6 @@ function Edit({
blackWhiteCoverFilter blackWhiteCoverFilter
} = attributes; } = attributes;
const colors = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useSetting)("color.palette.theme"); const colors = (0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useSetting)("color.palette.theme");
console.log(blackWhiteCoverFilter);
function setCoverAttributes(cover) { function setCoverAttributes(cover) {
setAttributes({ setAttributes({
coverId: cover.id, coverId: cover.id,
@ -194,7 +193,6 @@ function Edit({
isBlock: true, isBlock: true,
label: "Filtre", label: "Filtre",
onChange: value => { onChange: value => {
console.log(value);
setAttributes({ setAttributes({
blackWhiteCoverFilter: value === "true" blackWhiteCoverFilter: value === "true"
}); });

File diff suppressed because one or more lines are too long

View File

@ -30,7 +30,6 @@ export default function Edit({ attributes, setAttributes }) {
blackWhiteCoverFilter, blackWhiteCoverFilter,
} = attributes; } = attributes;
const colors = useSetting("color.palette.theme"); const colors = useSetting("color.palette.theme");
console.log(blackWhiteCoverFilter);
function setCoverAttributes(cover) { function setCoverAttributes(cover) {
setAttributes({ setAttributes({
@ -107,7 +106,6 @@ export default function Edit({ attributes, setAttributes }) {
isBlock isBlock
label="Filtre" label="Filtre"
onChange={(value) => { onChange={(value) => {
console.log(value);
setAttributes({ blackWhiteCoverFilter: value === "true" }); setAttributes({ blackWhiteCoverFilter: value === "true" });
}} }}
value={blackWhiteCoverFilter ? "true" : "false"} value={blackWhiteCoverFilter ? "true" : "false"}