diff --git a/app/assets/javascripts/environments/components/environment_item.js.es6 b/app/assets/javascripts/environments/components/environment_item.js.es6 index d9a78c592b0803257ae2a58086d9f1b834ce3317..0e6bc3fdb2c95e2a225554a0a86e915c8138e22d 100644 --- a/app/assets/javascripts/environments/components/environment_item.js.es6 +++ b/app/assets/javascripts/environments/components/environment_item.js.es6 @@ -23,8 +23,8 @@ */ window.gl = window.gl || {}; - gl.environmentsList = window.gl.environmentsList || {}; - gl.environmentsList.timeagoInstance = new timeago(); // eslint-disable-line + window.gl.environmentsList = window.gl.environmentsList || {}; + window.gl.environmentsList.timeagoInstance = new timeago(); // eslint-disable-line gl.environmentsList.EnvironmentItem = Vue.component('environment-item', { diff --git a/app/assets/javascripts/environments/stores/environments_store.js.es6 b/app/assets/javascripts/environments/stores/environments_store.js.es6 index 97d65521a96dea10a7a42ad0639a4e25acff7d62..0204a903ab58950241547cb341a7a642c3977280 100644 --- a/app/assets/javascripts/environments/stores/environments_store.js.es6 +++ b/app/assets/javascripts/environments/stores/environments_store.js.es6 @@ -1,7 +1,7 @@ /* eslint-disable no-param-reassign */ (() => { window.gl = window.gl || {}; - gl.environmentsList = window.gl.environmentsList || {}; + window.gl.environmentsList = window.gl.environmentsList || {}; gl.environmentsList.EnvironmentsStore = { state: {}, diff --git a/changelogs/unreleased/25725-remove-window-object.yml b/changelogs/unreleased/25725-remove-window-object.yml new file mode 100644 index 0000000000000000000000000000000000000000..c64b71ddd33e476c678b655e424d7e510a8617c7 --- /dev/null +++ b/changelogs/unreleased/25725-remove-window-object.yml @@ -0,0 +1,4 @@ +--- +title: Removes unneeded `window` declaration in environments related code +merge_request: 8456 +author: