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: 619ad54cad69f4dbad544452711f93e80eb00bd5 (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();
};