export default function getList(data, orm, inputValue) {
    let retVal = [];
    if (Array.isArray(orm.groups)) {
        orm.groups.forEach(({ key, show }) => {
            if (!(typeof show === 'function' && !show(inputValue))) {
                const list = data[key];
                retVal = retVal.concat(list);
            }
        });
    } else {
        Object.keys(data)
            .forEach((key) => {
                const list = data[key];
                retVal = retVal.concat(list);
            });
    }
    return retVal;
}

import { isFunction } from '../../utils/is';

export default function getList(data, orm, inputValue) {
    let retVal = [];
    if (Array.isArray(orm.groups)) {
        orm.groups.forEach(({ key, show }) => {
            if (!(isFunction(show) && !show(inputValue) && (!isFunction(orm.filter) || orm.filter(inputValue)))) {
                const list = data[key];
                retVal = retVal.concat(list);
            }
        });
    } else {
        Object.keys(data)
            .forEach((key) => {
                if (!isFunction(orm.filter) || orm.filter(inputValue)) {
                    const list = data[key];
                    retVal = retVal.concat(list);
                }
            });
    }
    return retVal;
}

Fix bug that personFinder used unfiltered list
:bug: Fix bug that personFinder used unfiltered list

