F 修复多主机发布时页面异常的问题 #133

pull/137/head
vapao 2020-06-23 21:31:45 +08:00
parent 9cb888d43b
commit 365159b349
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;