@@ -262,13 +262,17 @@ function renderSelectedFormat(layer, format) {
262
262
windowTitle . keywords . push ( {
263
263
name : `COLOR` ,
264
264
value : parts [ index + 1 ] ,
265
- conditional : new Conditional ( )
265
+ conditional : {
266
+ conditions : [ { indicators : [ ] } ]
267
+ }
266
268
} ) ;
267
269
case `*DSPATR` :
268
270
windowTitle . keywords . push ( {
269
271
name : `DSPATR` ,
270
272
value : parts [ index + 1 ] ,
271
- conditional : new Conditional ( )
273
+ conditional : {
274
+ conditions : [ { indicators : [ ] } ]
275
+ }
272
276
} ) ;
273
277
break ;
274
278
@@ -290,7 +294,9 @@ function renderSelectedFormat(layer, format) {
290
294
windowTitle . keywords . push ( {
291
295
name : `COLOR` ,
292
296
value : `BLU` ,
293
- conditional : new Conditional ( )
297
+ conditional : {
298
+ conditions : [ { indicators : [ ] } ]
299
+ }
294
300
} ) ;
295
301
}
296
302
@@ -811,7 +817,7 @@ function clearFieldInfo() {
811
817
} ;
812
818
813
819
return button ;
814
- }
820
+ } ;
815
821
816
822
// Creates: <vscode-button secondary>Secondary button</vscode-button>
817
823
@@ -1296,25 +1302,27 @@ function editKeyword(onUpdate, keyword) {
1296
1302
const newKeyword = {
1297
1303
name : keywordName ,
1298
1304
value : keywordValue ? keywordValue : undefined ,
1299
- conditional : new Conditional ( )
1305
+ conditional : {
1306
+ conditions : [ { indicators : [ ] } ]
1307
+ }
1300
1308
} ;
1301
1309
1302
1310
if ( ind1 !== `None` ) {
1303
- newKeyword . conditions . push ( {
1311
+ newKeyword . conditional . conditions [ 0 ] . indicators . push ( {
1304
1312
indicator : ind1 ,
1305
1313
negate : neg1
1306
1314
} ) ;
1307
1315
}
1308
1316
1309
1317
if ( ind2 !== `None` ) {
1310
- newKeyword . conditions . push ( {
1318
+ newKeyword . conditional . conditions [ 0 ] . indicators . push ( {
1311
1319
indicator : ind2 ,
1312
1320
negate : neg2
1313
1321
} ) ;
1314
1322
}
1315
1323
1316
1324
if ( ind3 !== `None` ) {
1317
- newKeyword . conditions . push ( {
1325
+ newKeyword . conditional . conditions [ 0 ] . indicators . push ( {
1318
1326
indicator : ind3 ,
1319
1327
negate : neg3
1320
1328
} ) ;
0 commit comments