Commit 2618f8ee755c0bf02f62c1ccf683bdf032d3b2e6
1 parent
786add6f
fix: fix not bind data source cell open layer will throw error
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | ... | @@ -4960,7 +4960,7 @@ DataFormatPanel.prototype.addDataFont = function (container) { |
| 4960 | 4960 | */ |
| 4961 | 4961 | function getLayerBindInfo(category, type) { |
| 4962 | 4962 | if (currentNodeData) { |
| 4963 | - return currentNodeData[category]?.find(item => item.type === type) | |
| 4963 | + return currentNodeData[category]?.find(item => item.type === type) || {} | |
| 4964 | 4964 | } |
| 4965 | 4965 | return {} |
| 4966 | 4966 | } |
| ... | ... | @@ -5882,7 +5882,7 @@ DataFormatPanel.prototype.addDataFont = function (container) { |
| 5882 | 5882 | const { component, echoDataSource, getValue } = generatorDataSourceComponent() |
| 5883 | 5883 | getDataSourceValue = getValue |
| 5884 | 5884 | $(`#${enumActionEl.DATA_SOURCE_COMP_EL}`).append(component) |
| 5885 | - const info = getLayerBindInfo('act', type) || {} | |
| 5885 | + const info = getLayerBindInfo('act', type) | |
| 5886 | 5886 | const { condition = [] } = info |
| 5887 | 5887 | if (!condition.length) { |
| 5888 | 5888 | addRecord() | ... | ... |