mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix: 修复编辑时控制台有异常打印 (#17605)
This commit is contained in:
@@ -124,8 +124,9 @@ export class TableHeatmap extends G2PlotChartView<HeatmapOptions, Heatmap> {
|
||||
const extColorField = extColor[0].dataeaseName
|
||||
// data
|
||||
const tmpData = cloneDeep(chart.data.tableRow)
|
||||
const data = tmpData.filter(cell => cell[xField] && cell[xFieldExt] && cell[extColorField])
|
||||
data.forEach(i => {
|
||||
const data =
|
||||
tmpData?.filter(cell => cell[xField] && cell[xFieldExt] && cell[extColorField]) || []
|
||||
data?.forEach(i => {
|
||||
Object.keys(i).forEach(key => {
|
||||
if (key === '*') {
|
||||
i['@'] = i[key]
|
||||
|
||||
@@ -2353,8 +2353,8 @@ export const configEmptyDataStyle = (newData, container, newChart?, content?) =>
|
||||
}
|
||||
}
|
||||
removeEmptyDom()
|
||||
if (newData.length > 0) return
|
||||
if (!newData.length) {
|
||||
if (newData?.length > 0) return
|
||||
if (!newData?.length) {
|
||||
const emptyDom = document.createElement('div')
|
||||
emptyDom.id = container + '_empty'
|
||||
emptyDom.textContent = content || tI18n('data_set.no_data')
|
||||
|
||||
Reference in New Issue
Block a user