Skip to content

Commit

Permalink
Fix bug where unsaved changes wouldn't be detected when reloaded on a…
Browse files Browse the repository at this point in the history
… tab with different query
  • Loading branch information
MichaelSun48 committed Sep 22, 2024
1 parent 2345d0d commit 387a3f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/app/views/issueList/customViewsHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ function CustomViewsIssueListHeaderTabsContent({

setDraggableTabs(
draggableTabs.map(tab =>
tab.key === selectedTab!.key
tab.key === selectedTab.key
? {
...tab,
unsavedChanges,
Expand Down Expand Up @@ -289,7 +289,7 @@ function CustomViewsIssueListHeaderTabsContent({
return;
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [navigate, organization.slug, query, sort, viewId]);
}, [navigate, organization.slug, query, sort, viewId, tabListState]);

// Update local tabs when new views are received from mutation request
useEffect(() => {
Expand Down

0 comments on commit 387a3f1

Please sign in to comment.