diff --git a/back/services/dependence.ts b/back/services/dependence.ts index 1cb7e559..eac054be 100644 --- a/back/services/dependence.ts +++ b/back/services/dependence.ts @@ -107,7 +107,7 @@ export default class DependenceService { query: any = {}, ): Promise { let condition = query; - if (DependenceTypes[type]) { + if (type && DependenceTypes[type] !== undefined) { condition.type = DependenceTypes[type]; } if (status) {