fix(editor): missing dependencies (#9436)

This commit is contained in:
Saul-Mirone
2024-12-30 14:10:37 +00:00
parent c28f918527
commit a9f890017e
22 changed files with 42 additions and 64 deletions

View File

@@ -75,9 +75,7 @@ export class AffineDragHandleWidget extends WidgetComponent<RootBlockModel> {
const blockId = closestBlock.model.id;
const model = closestBlock.model;
const isDatabase = matchFlavours(model, [
'affine:database' as BlockSuite.Flavour,
]);
const isDatabase = matchFlavours(model, ['affine:database']);
if (isDatabase) return null;
// note block can only be dropped into another note block

View File

@@ -188,9 +188,7 @@ export const getDropResult = (
const model = closestBlock.model;
const isDatabase = matchFlavours(model, [
'affine:database' as BlockSuite.Flavour,
]);
const isDatabase = matchFlavours(model, ['affine:database']);
if (isDatabase) {
return dropIndicator;
}