Skip to content

Commit 3e4d286

Browse files
authored
fix(searchbar): Ensure unsaved page filters are passed into filter tag query (#102607)
- Adds page filters to the dashboards use effect that fetches organization tags - This ensures that all page filter changes (including unsaved changes) are passed into the tag fetching query Fixes [BROWSE-99](https://linear.app/getsentry/issue/BROWSE-99/ensure-unsaved-page-filters-are-passed-into-filter-tag-query)
1 parent d2880df commit 3e4d286

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

static/app/views/dashboards/dashboard.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,14 @@ function Dashboard({
155155
);
156156
}, [api, organization.slug, selection.projects]);
157157

158-
// The operations in this effect should only run on mount/unmount
159158
useEffect(() => {
160-
window.addEventListener('resize', debouncedHandleResize);
161-
162159
// Always load organization tags on dashboards
163160
loadOrganizationTags(api, organization.slug, selection);
161+
}, [api, organization.slug, selection]);
162+
163+
// The operations in this effect should only run on mount/unmount
164+
useEffect(() => {
165+
window.addEventListener('resize', debouncedHandleResize);
164166

165167
// Get member list data for issue widgets
166168
fetchMemberList();

0 commit comments

Comments
 (0)