Created
August 15, 2022 14:17
-
-
Save michalkorzawski/fa9f366648d292befc4f24d9ac83f84c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def results | |
| params_hash = element.dataset['params-hash'].present? ? JSON.parse(element.dataset['params-hash']) : filtered_params | |
| query = (element.dataset.from_search_input ? element.value : element.value.presence) || params_hash['query'] | |
| params_hash['query'] = query | |
| … | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment