debian-mirror-gitlab/app/assets/javascripts/pipelines/utils.js

9 lines
253 B
JavaScript
Raw Normal View History

2020-06-23 00:09:42 +05:30
import { pickBy } from 'lodash';
import { SUPPORTED_FILTER_PARAMETERS } from './constants';
export const validateParams = params => {
return pickBy(params, (val, key) => SUPPORTED_FILTER_PARAMETERS.includes(key) && val);
};
export default () => {};