fix(editor): missing dependencies (#9436)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user