polarvo-layout 1.0.18 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polarvo-layout",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "type": "module",
5
5
  "author": "unigence <unigencelab@gmail.com>",
6
6
  "repository": {
@@ -355,10 +355,15 @@ class EngineManager {
355
355
  _setupFreeDropEngineConnections() {
356
356
  // 배치요소 추가 요청
357
357
  this._subscribe('freeDrop:requestAddElement', ({ element }) => {
358
+ if (this.state.elements.some((el) => el.id === element.id)) {
359
+ return;
360
+ }
361
+
358
362
  this.state.elements.push(element);
359
363
  this._updateActiveSectionConfig('elementIds', { elementIds: [...this.activeData.elementIds, element.id] });
360
364
  // this._updateActiveElementIds([...this.activeData.elementIds, element.id]);
361
365
 
366
+ console.log('this.state.elements', this.state.elements)
362
367
  this.eventBus.emit('system:requestUpdateData', {
363
368
  action: 'add',
364
369
  elements: this.state.elements,