mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 06:19:45 +00:00
Фикс: убивались другие фигуры
This commit is contained in:
1 parent
41c7ce93af
commit
ce924a4010
1 file changed
+3
-1
+3
-1
@@ -28,7 +28,9 @@ function parseContent(str) {
|
||||
|
||||
if (typeof current === 'string') continue;
|
||||
|
||||
if (current.type === "figure") {
|
||||
const currentElClasses = current.props.className;
|
||||
|
||||
if (current.type === "figure" && currentElClasses.includes('wp-block-image')) {
|
||||
temp.push(current.props.children.props.src); // Добавляем элемент в temp
|
||||
} else {
|
||||
if (temp.length !== 0) {
|
||||
|
||||
Reference in new issue
Block a user