There was an error while loading. Please reload this page.
1 parent 883c440 commit 1be2490Copy full SHA for 1be2490
packages/he-tree-vue/src/components/DraggableTree.ts
@@ -250,7 +250,7 @@ const cpt = defineComponent({
250
const rootEl = this.getRootEl();
251
let dragElement: HTMLElement | null = null; // dragElement is the drag node element
252
const removePlaceholderWhenEnd = () => {
253
- if (targetTree!.has(targetTree!.placeholderData)) {
+ if (targetTree?.has(targetTree!.placeholderData)) {
254
targetTree!.ignoreUpdate(() => {
255
targetTree!.remove(targetTree!.getStat(targetTree!.placeholderData));
256
// update together to prevent flick
0 commit comments