@PhastCo
Can you try comparing two lists using regex expression?
// Define the lists
let list1 = ["tag1", "tag2", "tag3", "tag4"];
let list2 = ["tag1", "tag4"];
// Create a single regex pattern from list2
let pattern = new RegExp(`^(${list2.join("|")})$`);
// Filter list1 to find elements that match the pattern
let matchingTags = list1.filter(tag => pattern.test(tag));
console.log(matchingTags); // Output: ["tag1", "tag4"]
You might need to tweak the regex expression for you use case and make it compatible to bubble.
Not 100% sure if this can work for you. Let me know.