diff --git a/core/files/fileobject/service.go b/core/files/fileobject/service.go index b07954918..6f7b3f84c 100644 --- a/core/files/fileobject/service.go +++ b/core/files/fileobject/service.go @@ -586,7 +586,8 @@ func (s *service) DeleteFileData(objectId string) error { }, { RelationKey: bundle.RelationKeyFileId.String(), - Condition: model.BlockContentDataviewFilter_NotEmpty, + Condition: model.BlockContentDataviewFilter_Equal, + Value: pbtypes.String(fullId.FileId.String()), }, }, })