← All changes
|
assets/js/packages/editor-elements/editor-elements.js
+1
-0
4.3.0-beta1
→
4.3.1
View file →
| @@ -1100,8 +1100,9 @@ | ||
| 1100 | 1100 | return style.variants.length === 0; |
| 1101 | 1101 | } |
| 1102 | 1102 | function clearRemovedClasses(container, { oldIds, newIds }) { |
| 1103 | 1103 | const removedIds = oldIds.filter((id) => !newIds.includes(id)); |
| 1104 | + if (!removedIds.length) return; | |
| 1104 | 1105 | const classesProps = structuredClone(getClassesProps(container)); |
| 1105 | 1106 | classesProps.forEach(([, prop]) => { |
| 1106 | 1107 | prop.value = prop.value.filter((value) => !removedIds.includes(value)); |
| 1107 | 1108 | }); |