Skip to content

Commit 821f9b3

Browse files
committed
Fix: updated cms filter to validate if there is a tag template container before trying to set tags
1 parent 3882447 commit 821f9b3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Dist/Functional/CMSFilter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,8 @@ class CMSFilter {
337337
}
338338

339339
SetActiveTags() {
340+
if(!this.tagTemplateContainer) return;
340341
this.InitializeTagTemplate();
341-
// Clear existing tags before adding new ones
342-
this.tagTemplateContainer.innerHTML = "";
343342

344343
const filterTags = Object.keys(this.activeFilters);
345344
filterTags.forEach(tag => {

0 commit comments

Comments
 (0)