Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getters.js « store « ci_variable_list « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6570f4555411a154b462b4e4e0c8ccd6c5935766 (plain)
1
2
3
4
5
6
import { uniq } from 'lodash';

export const joinedEnvironments = (state) => {
  const scopesFromVariables = (state.variables || []).map((variable) => variable.environment_scope);
  return uniq(state.environments.concat(scopesFromVariables)).sort();
};