diff options
-rw-r--r-- | app/assets/javascripts/ide/stores/modules/pipelines/actions.js | 4 | ||||
-rw-r--r-- | spec/javascripts/ide/stores/modules/pipelines/mutations_spec.js | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/ide/stores/modules/pipelines/actions.js b/app/assets/javascripts/ide/stores/modules/pipelines/actions.js index 17ca9ac4dba..71e9a1b0751 100644 --- a/app/assets/javascripts/ide/stores/modules/pipelines/actions.js +++ b/app/assets/javascripts/ide/stores/modules/pipelines/actions.js @@ -9,8 +9,8 @@ import * as types from './mutation_types'; let eTagPoll; export const clearEtagPoll = () => (eTagPoll = null); -export const stopPipelinePolling = () => eTagPoll.stop(); -export const restartPipelinePolling = () => eTagPoll.restart(); +export const stopPipelinePolling = () => eTagPoll && eTagPoll.stop(); +export const restartPipelinePolling = () => eTagPoll && eTagPoll.restart(); export const requestLatestPipeline = ({ commit }) => commit(types.REQUEST_LATEST_PIPELINE); export const receiveLatestPipelineError = ({ commit, dispatch }) => { diff --git a/spec/javascripts/ide/stores/modules/pipelines/mutations_spec.js b/spec/javascripts/ide/stores/modules/pipelines/mutations_spec.js index 653af1128ad..1425f4d0b71 100644 --- a/spec/javascripts/ide/stores/modules/pipelines/mutations_spec.js +++ b/spec/javascripts/ide/stores/modules/pipelines/mutations_spec.js @@ -66,6 +66,7 @@ describe('IDE pipelines mutations', () => { expect(mockedState.stages).toEqual([ { ...stages[0], + dropdownPath: stages[0].dropdownPath, id: 0, isCollapsed: false, isLoading: false, @@ -73,6 +74,7 @@ describe('IDE pipelines mutations', () => { }, { ...stages[1], + dropdownPath: stages[1].dropdownPath, id: 1, isCollapsed: false, isLoading: false, |