diff --git a/src/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.tsx b/src/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.tsx index 426d8d566..2b04e969f 100644 --- a/src/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.tsx +++ b/src/containers/PageConstructor/components/ConstructorBlocks/ConstructorBlocks.tsx @@ -30,7 +30,7 @@ export const ConstructorBlocks = ({items, shouldRenderBlock}: ConstructorBlocksP let itemElement; const key = getBlockKey(item, index); const blockId = parentId ? `${parentId}_${key}` : key; - if (shouldRenderBlock && !shouldRenderBlock(item, key)) { + if (shouldRenderBlock && !shouldRenderBlock(item, blockId)) { return null; } @@ -44,8 +44,8 @@ export const ConstructorBlocks = ({items, shouldRenderBlock}: ConstructorBlocksP itemElement = ( - + {children}