Streaming live at 10am (PST)

Dynamic Slider hide when no items shown

Hi everyone!

I am using a dynamic slider code/setup for a CMS collection. I wanted to see if anyone knew of a way to hide the entire section if no CMS items are shown. I have a script to hide a section if no dynamic items are in the collection but it does not work with the slider now in the section.
($(".upcoming-auctions").has(".w-dyn-empty").css(“display”, “none”)

Code for slider:
(function() {
// create a new Library instance and store it in a variable called “fsSlider”
var fsSlider = new FsLibrary(".slider-data-feed")
// run Slider on our instance
fsSlider.slider({
sliderComponent: “.slider-component”,
resetIx: true
})
})();

Thanks!


Here is my site Read-Only: Client doesn’t want the preview to be shared*

(how to share your site Read-Only link)