Skip to content

Commit

Permalink
regionsArray is list of any, not list with single item of any
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Twydell <[email protected]>
  • Loading branch information
AndrewTwydell committed Dec 18, 2024
1 parent 788a582 commit 3750e38
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vsce/src/trees/CICSRegionsContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ export class CICSRegionsContainer extends TreeItem {
* Count the number of total and active regions
* @param regionsArray
*/
private addRegionsUtility(regionsArray: [any]) {
private addRegionsUtility(regionsArray: any[]) {
let activeCount = 0;
let totalCount = 0;
const parentPlex = this.getParent();
const regionFilterRegex = this.activeFilter ? new RegExp(this.patternIntoRegex(this.activeFilter)) : ""; //parentPlex.getActiveFilter() ? RegExp(parentPlex.getActiveFilter()!) : undefined;
//parentPlex.getActiveFilter() ? RegExp(parentPlex.getActiveFilter()!) : undefined;
const regionFilterRegex = this.activeFilter ? new RegExp(this.patternIntoRegex(this.activeFilter)) : "";
for (const region of regionsArray) {
// If region filter exists then match it
if (!regionFilterRegex || region.cicsname.match(regionFilterRegex)) {
Expand Down

0 comments on commit 3750e38

Please sign in to comment.