define(function() {
    'use strict';

    var moduleNameTemplate = 'oro/filter/{{type}}-filter';
    var types = {
            string:      'choice',
            choice:      'select',
            single_choice: 'select',
            selectrow:   'select-row',
            multichoice: 'multiselect',
            boolean:     'select'
        };

    return function(type) {
        return moduleNameTemplate.replace('{{type}}', types[type] || type);
    };
});

define(function() {
    'use strict';

    var moduleNameTemplate = 'oro/filter/{{type}}-filter';
    var types = {
            string:      'choice',
            choice:      'select',
            single_choice: 'select',
            selectrow:   'select-row',
            multichoice: 'multiselect',
            boolean:     'select',
            dictionary:  'dictionary'
        };

    return function(type) {
        return moduleNameTemplate.replace('{{type}}', types[type] || type);
    };
});

Modify frontend component to load proper filters for both enum and dictionary types
BAP-8615: Modify frontend component to load proper filters for both enum and dictionary types
