diff --git a/spug_web/src/pages/deploy/do/Ext1Index.js b/spug_web/src/pages/deploy/do/Ext1Index.js index 8a5ec06..d3e2fc0 100644 --- a/spug_web/src/pages/deploy/do/Ext1Index.js +++ b/spug_web/src/pages/deploy/do/Ext1Index.js @@ -59,7 +59,7 @@ class Ext1Index extends React.Component { const {key, data, step, status} = message; if (data !== undefined) { store.outputs[key]['data'] += data; - this.elements[key].scrollIntoView() + if (this.elements[key]) this.elements[key].scrollIntoView() } if (step !== undefined) store.outputs[key]['step'] = step; if (status !== undefined) store.outputs[key]['status'] = status; diff --git a/spug_web/src/pages/deploy/do/Ext2Index.js b/spug_web/src/pages/deploy/do/Ext2Index.js index 3437896..a4ac752 100644 --- a/spug_web/src/pages/deploy/do/Ext2Index.js +++ b/spug_web/src/pages/deploy/do/Ext2Index.js @@ -60,7 +60,7 @@ class Ext1Index extends React.Component { const {key, data, step, status} = message; if (data !== undefined) { store.outputs[key]['data'] += data; - this.elements[key].scrollIntoView() + if (this.elements[key]) this.elements[key].scrollIntoView() } if (step !== undefined) store.outputs[key]['step'] = step; if (status !== undefined) store.outputs[key]['status'] = status;