Merge pull request #3025 from dataease/pr@dev@fix_scroll_s2_error

fix(视图-s2表格): 预览s2表格后切换到空仪表板拖动浏览器控制台报错
This commit is contained in:
fit2cloud-chenyw 2022-08-31 22:34:41 +08:00 committed by GitHub
commit 11426fc96b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,7 @@ export function baseTableInfo(s2, container, chart, action, tableData) {
export function baseTableNormal(s2, container, chart, action, tableData) { export function baseTableNormal(s2, container, chart, action, tableData) {
const containerDom = document.getElementById(container) const containerDom = document.getElementById(container)
if(!containerDom) return
// fields // fields
const fields = chart.data.fields const fields = chart.data.fields