This is an automated email from the ASF dual-hosted git repository. xxyu pushed a commit to branch kylin5 in repository https://gitbox.apache.org/repos/asf/kylin.git
commit 1bad3e06ea4b57a10638b8ea2f802f1c6ecec6e9 Author: Qian Xia <lauraxiaq...@gmail.com> AuthorDate: Thu Jul 13 11:16:06 2023 +0800 KYLIN-5623 refine reloadTables issue --- kystudio/src/components/studio/StudioSource/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kystudio/src/components/studio/StudioSource/index.vue b/kystudio/src/components/studio/StudioSource/index.vue index 7aa6d0fbf5..6e9751b687 100644 --- a/kystudio/src/components/studio/StudioSource/index.vue +++ b/kystudio/src/components/studio/StudioSource/index.vue @@ -365,12 +365,12 @@ export default class StudioSource extends Vue { let isHaveFirstTable = true // 3016 临时修复方案,sprint1 修复后,以修复后的代码为准 if (isSetToDefault) { - await this.$refs['datasource-bar'].reloadTables(true) // true 表示不改变树开合情况 + this.$refs['datasource-bar'] && await this.$refs['datasource-bar'].reloadTables(true) // true 表示不改变树开合情况 } else { - await this.$refs['datasource-bar'].refreshTables() + this.$refs['datasource-bar'] && await this.$refs['datasource-bar'].refreshTables() } isSetToDefault - ? isHaveFirstTable = this.$refs['datasource-bar'].selectFirstTable() + ? isHaveFirstTable = this.$refs['datasource-bar'] && this.$refs['datasource-bar'].selectFirstTable() : await this.fetchTableDetail({ tableName, databaseName, sourceType: datasource }) if (!isHaveFirstTable) { this.selectedTableData = null