Skip to content

Only refresh source filters if necessary#165

Merged
Carifio24 merged 2 commits into
masterfrom
source-filters-only-refresh-if-necessary
Mar 17, 2026
Merged

Only refresh source filters if necessary#165
Carifio24 merged 2 commits into
masterfrom
source-filters-only-refresh-if-necessary

Conversation

@Carifio24

Copy link
Copy Markdown
Owner

Currently we refresh the source filters every time the sort/filter screen is open. Due to the way that things are currently configured, a side effect of this is that the "Show More/Less" button text can be out of sync with the current state of the filter block.

This PR updates things so that we only update the source filters when a source is created or deleted. In that instance, we reset the button text and open/closed state. This both fixes the button text issue and removes unnecessary work of refreshing the filters when it's not needed.

@Carifio24 Carifio24 added the bug Something isn't working label Mar 14, 2026
@Carifio24 Carifio24 merged commit 6924edc into master Mar 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant