Skip to content

Commit 01071f3

Browse files
committed
fix(shape): restore behaviour for adding / modifying a shape more than once on a slide
1 parent 9cb21c5 commit 01071f3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/classes/has-shapes.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,12 @@ export default class HasShapes {
444444
async getUniqueImportedElements(): Promise<ImportElement[]> {
445445
for (const element of this.importElements) {
446446
const info = await this.getElementInfo(element);
447+
448+
if(element.mode === 'append') {
449+
element.info = info;
450+
continue
451+
}
452+
447453
const selector = XmlSlideHelper.getSelector(info.sourceElement);
448454
const eleHash = JSON.stringify(selector);
449455
const alreadyImported = this.importElements.find(

0 commit comments

Comments
 (0)