Force-preserve a facet’s choices

(function($) {
    $(document).on('facetwp-refresh', function() {
        /**
         * If the "makes" facet has some active selections, then preseve ALL its choices
         * This uses FWP.frozen_facets to prevent a re-render
         */
        if (0 < FWP.facets['makes'].length) {
            FWP.frozen_facets['makes'] = 'soft';
        }
    });
})(jQuery);