diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-12-14 15:48:46 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2016-12-19 19:53:02 +0000 |
commit | c5741e57c2726660732ef2e4114645035025f8c3 (patch) | |
tree | a51bfe8bbe15526a5d24a1bc1ab8589251a4d5dc | |
parent | 75b64debb9bb587ea1980c1f891ec9cd6bf62167 (diff) | |
download | gitlab-ce-c5741e57c2726660732ef2e4114645035025f8c3.tar.gz |
Fix consistent typo in environment.js
environmnets => environments
-rw-r--r-- | app/assets/javascripts/environments/components/environment.js.es6 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/assets/javascripts/environments/components/environment.js.es6 b/app/assets/javascripts/environments/components/environment.js.es6 index 88c3d257cea..d04adecd207 100644 --- a/app/assets/javascripts/environments/components/environment.js.es6 +++ b/app/assets/javascripts/environments/components/environment.js.es6 @@ -18,7 +18,7 @@ * The environments array is a recursive tree structure and we need to filter * both root level environments and children environments. * - * In order to acomplish that, both `filterState` and `filterEnvironmnetsByState` + * In order to acomplish that, both `filterState` and `filterEnvironmentsByState` * functions work together. * The first one works as the filter that verifies if the given environment matches * the given state. @@ -34,9 +34,9 @@ * @param {Array} array * @return {Array} */ - const filterEnvironmnetsByState = (fn, arr) => arr.map((item) => { + const filterEnvironmentsByState = (fn, arr) => arr.map((item) => { if (item.children) { - const filteredChildren = filterEnvironmnetsByState(fn, item.children).filter(Boolean); + const filteredChildren = filterEnvironmentsByState(fn, item.children).filter(Boolean); if (filteredChildren.length) { item.children = filteredChildren; return item; @@ -81,7 +81,7 @@ computed: { filteredEnvironments() { - return filterEnvironmnetsByState(filterState(this.visibility), this.state.environments); + return filterEnvironmentsByState(filterState(this.visibility), this.state.environments); }, scope() { @@ -102,7 +102,7 @@ }, /** - * Fetches all the environmnets and stores them. + * Fetches all the environments and stores them. * Toggles loading property. */ created() { |