debian-mirror-gitlab/app/assets/javascripts/admin/abuse_reports/utils.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
256 B
JavaScript
Raw Normal View History

2023-05-27 22:25:52 +05:30
import { FILTERED_SEARCH_TOKEN_CATEGORY } from './constants';
export const buildFilteredSearchCategoryToken = (categories) => {
const options = categories.map((c) => ({ value: c, title: c }));
return { ...FILTERED_SEARCH_TOKEN_CATEGORY, options };
};