From 365159b349e372eda94629b255a122d57215d4f9 Mon Sep 17 00:00:00 2001 From: vapao Date: Tue, 23 Jun 2020 21:31:45 +0800 Subject: [PATCH] =?UTF-8?q?F=20=E4=BF=AE=E5=A4=8D=E5=A4=9A=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA=E5=8F=91=E5=B8=83=E6=97=B6=E9=A1=B5=E9=9D=A2=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98=20#133?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/deploy/do/Ext1Index.js | 2 +- spug_web/src/pages/deploy/do/Ext2Index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;