Skip to content

Commit e3bf1ad

Browse files
authored
Merge pull request #38 from TheCodeRaccoons/Feature-adding-render-static-affordance-to-CMSFilter
Fix: Added Render static affordance to CMS Filter
2 parents 11af7bb + 7bd0556 commit e3bf1ad

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Dist/WebflowOnly/CMSFilter.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,8 +520,10 @@ class CMSFilter {
520520
}
521521
}
522522
if(this.allItems){
523-
if(this.allItems.length > 0) {
524-
return this.allItems.length;
523+
//trim out static elements from RenderStatic
524+
let elements = this.allItems.filter(item => !item.hasAttribute('wt-renderstatic-element'));
525+
if(elements.length > 0) {
526+
return elements.length;
525527
}
526528
return 0;
527529
}

0 commit comments

Comments
 (0)