diff options
author | Phil Hughes <me@iamphill.com> | 2018-05-25 17:31:59 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-05-25 17:31:59 +0100 |
commit | 32498cd70d84f8e08d62d80330ca73dd703be1e9 (patch) | |
tree | 34a62a1a0db1cb1d44854832fe2d5623f52f17b4 /app/assets/javascripts/ide/stores/modules/pipelines/actions.js | |
parent | af42fa2364254b2c1042b431549b07b275e3cf0e (diff) | |
download | gitlab-ce-32498cd70d84f8e08d62d80330ca73dd703be1e9.tar.gz |
fixed mutations spec
Diffstat (limited to 'app/assets/javascripts/ide/stores/modules/pipelines/actions.js')
-rw-r--r-- | app/assets/javascripts/ide/stores/modules/pipelines/actions.js | 4 |
1 files changed, 2 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 }) => { |