File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
src/visualizers/panels/ArchEditor Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -161,13 +161,12 @@ define([
161161 // Remove all criterion layers and abstract layers
162162 for ( i = metanodes . length ; i -- ; ) {
163163 if ( layerId ) {
164+ if ( metanodes [ i ] . getAttribute ( 'name' ) === 'Criterion' ) {
165+ criterionId = metanodes [ i ] . getId ( ) ;
166+ continue ;
167+ }
164168 if ( ! metanodes [ i ] . isAbstract ( ) && metanodes [ i ] . isTypeOf ( layerId ) ) {
165-
166- if ( metanodes [ i ] . getAttribute ( 'name' ) === 'Criterion' ) {
167- criterionId = metanodes [ i ] . getId ( ) ;
168- } else {
169- allLayers . push ( metanodes [ i ] ) ;
170- }
169+ allLayers . push ( metanodes [ i ] ) ;
171170 } else if ( ! connId && metanodes [ i ] . getAttribute ( 'name' ) === 'Connection' ) { // Detect the layer connection type...
172171 tgts = this . _client . getPointerMeta ( metanodes [ i ] . getId ( ) , 'src' ) . items ;
173172 for ( j = tgts . length ; j -- ; ) {
You can’t perform that action at this time.
0 commit comments