Created
August 15, 2022 14:15
-
-
Save michalkorzawski/c612e132edb0882d17fe2690579b2d78 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.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