lviguier 5 months ago
parent
commit
2e4814d53d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hide/comp/cdb/Editor.hx

+ 2 - 2
hide/comp/cdb/Editor.hx

@@ -1755,9 +1755,9 @@ class Editor extends Component {
 			if( col != null ) {
 			if( col != null ) {
 				base.mapType(function(t) {
 				base.mapType(function(t) {
 					return switch( t ) {
 					return switch( t ) {
-					case TRef(o) if( o.indexOf(col.name) >= 0 && o.indexOf('@') >= 0 ):
+					case TRef(o) if( o.indexOf('@${col.name}') >= 0 ):
 						TRef(StringTools.replace(o, col.name, c.name));
 						TRef(StringTools.replace(o, col.name, c.name));
-					case TLayer(o) if( o.indexOf(col.name) >= 0 && o.indexOf('@') >= 0 ):
+					case TLayer(o) if( o.indexOf('@${col.name}') >= 0 ):
 						TLayer(StringTools.replace(o, col.name, c.name));
 						TLayer(StringTools.replace(o, col.name, c.name));
 					default:
 					default:
 						t;
 						t;