diff --git a/src/selector_manager/view/ClassTagsView.js b/src/selector_manager/view/ClassTagsView.js index 127225055..ede1f3198 100644 --- a/src/selector_manager/view/ClassTagsView.js +++ b/src/selector_manager/view/ClassTagsView.js @@ -244,14 +244,12 @@ export default Backbone.View.extend({ .reduce((acc, item) => this._commonSelectors(acc, item), args[0]); }, - checkSync: debounce(function({ validSelectors }) { - const { $btnSyncEl, config } = this; + checkSync: debounce(function() { + const { $btnSyncEl, config, collection } = this; const target = this.getTarget(); - const sel = - validSelectors || (target && target.getSelectors().getValid()) || []; let hasStyle; - if (target && config.componentFirst && sel.length) { + if (target && config.componentFirst && collection.length) { const style = target.getStyle(); hasStyle = !isEmpty(style); }