From 7f60b142b3c2deadd5035bf5421c8fd0de9695d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=A3=E5=BD=AC?= Date: Sat, 15 Aug 2020 14:16:31 +0800 Subject: [PATCH] =?UTF-8?q?1.0.0=E5=8F=91=E5=B8=83=E5=87=86=E5=A4=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/plugin-outline-pane/package.json | 2 +- packages/plugin-outline-pane/src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/plugin-outline-pane/package.json b/packages/plugin-outline-pane/package.json index 6c6d40425..4cec5ade1 100644 --- a/packages/plugin-outline-pane/package.json +++ b/packages/plugin-outline-pane/package.json @@ -1,6 +1,6 @@ { "name": "@ali/lowcode-plugin-outline-pane", - "version": "0.9.0", + "version": "0.9.1", "description": "Outline pane for Ali lowCode engine", "files": [ "es", diff --git a/packages/plugin-outline-pane/src/main.ts b/packages/plugin-outline-pane/src/main.ts index 11c5951af..c221f02ec 100644 --- a/packages/plugin-outline-pane/src/main.ts +++ b/packages/plugin-outline-pane/src/main.ts @@ -135,7 +135,7 @@ export class OutlineMain implements ISensor, ITreeBoard, IScrollable { const irect = this.getInsertionRect(); const originLoc = document.dropLocation; - const prop = e.dragObject.nodes[0].getPrototype(); + const prop = e.dragObject.nodes ? e.dragObject.nodes[0].getPrototype() : null; if (e.dragObject.type === 'node' && prop && prop.isModal()) { return designer.createLocation({ target: document.rootNode,