diff --git a/src/component/registry/bpmn-model-filters.ts b/src/component/registry/bpmn-model-filters.ts index 4bc90041f2..39dd240a76 100644 --- a/src/component/registry/bpmn-model-filters.ts +++ b/src/component/registry/bpmn-model-filters.ts @@ -28,7 +28,7 @@ export class ModelFiltering { filter(bpmnModel: BpmnModel, modelFilter?: ModelFilter): BpmnModel { const poolIdsFilter: string[] = []; const poolNamesFilter: string[] = []; - for (const filter of ensureIsArray(modelFilter?.pools).filter(p => p && Object.keys(p).length)) + for (const filter of ensureIsArray(modelFilter?.pools).filter(p => p && Object.keys(p).length > 0)) filter.id ? poolIdsFilter.push(filter.id) : filter.name && poolNamesFilter.push(filter.name); if (poolIdsFilter.length === 0 && poolNamesFilter.length === 0) {