diff --git a/designer-base/src/main/java/com/fr/design/data/datapane/TreeTableDataDictPane.java b/designer-base/src/main/java/com/fr/design/data/datapane/TreeTableDataDictPane.java index a50f89c189..175ddbfda3 100644 --- a/designer-base/src/main/java/com/fr/design/data/datapane/TreeTableDataDictPane.java +++ b/designer-base/src/main/java/com/fr/design/data/datapane/TreeTableDataDictPane.java @@ -202,8 +202,7 @@ public class TreeTableDataDictPane extends BasicPane implements Previewable { } private boolean isNoSelectedColumnName(ValueEditorPane valueEditorPane) { - ColumnNameEditor columnNameEditor = (ColumnNameEditor) valueEditorPane.getCards()[0]; - return StringUtils.isEmpty(columnNameEditor.getColumnName()); + return (Integer) valueEditorPane.update() == -1; } @Override