From ab5ac86682b541231dce1d01a188076877cb8794 Mon Sep 17 00:00:00 2001 From: brookshi Date: Tue, 16 Jan 2018 13:16:20 +0800 Subject: [PATCH] schedule records may be undefined when use local cache --- client/src/modules/schedule/index.tsx | 2 +- .../modules/schedule/schedule_run_history_grid.tsx | 5 +++-- client/tslint.json | 2 +- cn/installation/StepByStep.md | 11 +++++++++-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/client/src/modules/schedule/index.tsx b/client/src/modules/schedule/index.tsx index e160340..ace1f80 100644 --- a/client/src/modules/schedule/index.tsx +++ b/client/src/modules/schedule/index.tsx @@ -120,7 +120,7 @@ class Schedule extends React.Component { , runResults: Array>, runDate: Date) { + const { scheduleRecordsInfo } = this.props; this.flattenRunResult(runResults).forEach(o => { - if (envs.find(e => e === o.envId) || this.props.scheduleRecordsInfo.excludeNotExist === false) { + if (envs.find(e => e === o.envId) || (scheduleRecordsInfo && scheduleRecordsInfo.excludeNotExist === false)) { const key = `${o.id}${o.param || ''}${o.envId || ''}`; statisticsData[key] = statisticsData[key] || {}; statisticsData[key].runResults = statisticsData[key].runResults || []; diff --git a/client/tslint.json b/client/tslint.json index 5386080..fd93e62 100644 --- a/client/tslint.json +++ b/client/tslint.json @@ -1,6 +1,6 @@ { "extends": [ - "tslint:latest", "tslint-react" + "tslint-react" ], "rules": { "align": [ diff --git a/cn/installation/StepByStep.md b/cn/installation/StepByStep.md index 8141235..f3dadc5 100644 --- a/cn/installation/StepByStep.md +++ b/cn/installation/StepByStep.md @@ -37,12 +37,19 @@ #### 安装过程可能出现的问题 - +----- 问: 提交后跳转不成功 + 答: 安装过程出错,看看server的命令行有什么提示,一般是权限相关问题。 +----- 问:启动后一直再转圈 + 答:可能是数据库连不上导致,先查看在当前机器上是否能访问数据库;也有可能是连接数据库出错导致,请确保数据库支持json列。 +----- 问:Windows系统下启动后弹出好几个窗口 -答:正常现象,pm2启动的,如果想避免弹窗,可以考虑把pm2注册成服务。 \ No newline at end of file + +答:正常现象,pm2启动的,如果想避免弹窗,可以考虑把pm2注册成服务。 + +----- \ No newline at end of file