const childrenFilter = computed(() => { if (!selectedParents.value.length) { return []; } return [{ kind: 'group', op: 'AND', filter: selectedParents.value.map(selectedParent => ({ // This inner OR group shouldn't be needed, but there is a bug in how // multiple conditions against the same field are handled in Drupal Core // https://www.drupal.org/project/drupal/issues/3066202#comment-13181270 kind: 'group', op: 'OR', filter: [{ kind: 'attribute', attribute: 'parent.id', op: '=', value: selectedParent.id }] })) }]; });