mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 18:09:58 +08:00
fix: modify with new blocksuite version about subpage (#2060)
This commit is contained in:
@@ -45,11 +45,11 @@
|
||||
"react-is": "^18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blocksuite/blocks": "0.0.0-20230420160324-857b396c-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230420160324-857b396c-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230420160324-857b396c-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230420210727-85b7de79-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230420210727-85b7de79-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230420210727-85b7de79-nightly",
|
||||
"@blocksuite/icons": "^2.1.10",
|
||||
"@blocksuite/store": "0.0.0-20230420160324-857b396c-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230420210727-85b7de79-nightly",
|
||||
"@storybook/addon-actions": "^7.0.5",
|
||||
"@storybook/addon-coverage": "^0.0.8",
|
||||
"@storybook/addon-essentials": "^7.0.5",
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import type {
|
||||
DragEndEvent} from '@dnd-kit/core';
|
||||
import type { DragEndEvent } from '@dnd-kit/core';
|
||||
import {
|
||||
closestCenter,
|
||||
DndContext,
|
||||
DragOverlay,
|
||||
PointerSensor,
|
||||
useSensor,
|
||||
useSensors
|
||||
useSensors,
|
||||
} from '@dnd-kit/core';
|
||||
import { useCallback, useState } from 'react';
|
||||
|
||||
@@ -47,7 +46,7 @@ export const TreeView = <RenderProps,>({
|
||||
const { active, over } = e;
|
||||
const position = over?.data.current?.position;
|
||||
const dropId = over?.data.current?.node.id;
|
||||
|
||||
setDraggingId(undefined);
|
||||
if (!over || !active || !position) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user