<commit_before>import Controller from '@ember/controller';
import {action} from '@ember/object';
import {inject as controller} from '@ember/controller';
import {resetQueryParams} from 'ghost-admin/helpers/reset-query-params';
import {inject as service} from '@ember/service';

export default class ImportController extends Controller {
    @service router;
    @controller members;

    @action
    refreshMembers({label} = {}) {
        if (label) {
            let queryParams = Object.assign(resetQueryParams('members.index'), {label: label.slug});
            this.router.transitionTo({queryParams});
        }
        this.members.refreshData();
    }

    @action
    close() {
        this.router.transitionTo('members');
    }
}<commit_msg>Fixed incorrect filter param being used after members import<commit_after>import Controller from '@ember/controller';
import {action} from '@ember/object';
import {inject as controller} from '@ember/controller';
import {resetQueryParams} from 'ghost-admin/helpers/reset-query-params';
import {inject as service} from '@ember/service';

export default class ImportController extends Controller {
    @service router;
    @controller members;

    @action
    refreshMembers({label} = {}) {
        if (label) {
            let queryParams = Object.assign(resetQueryParams('members.index'), {filter: `label:[${label.slug}]`});
            this.router.transitionTo({queryParams});
        }
        this.members.refreshData();
    }

    @action
    close() {
        this.router.transitionTo('members');
    }
}
{'fraction_non_alphanumeric': 0.13102119460500963, 'fraction_numerical': 0.0, 'mean_word_length': 3.542274052478134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5386504', 'n_tokens_mistral': 410, 'n_tokens_neox': 409, 'n_words': 104}