Skip to content

Commit

Permalink
Change anonymous function to named one.
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Monschke <janmonschke@fastmail.com>
  • Loading branch information
logeekal and janmonschke committed May 8, 2024
1 parent 18188fd commit d6470df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const DiscoverTabContent: FC<DiscoverTabContentProps> = ({ timelineId })
if (!index) return;
if (!latestState || combinedDiscoverSavedSearchStateRef.current === latestState) return;
if (isEqualWith(latestState, savedSearchById, savedSearchComparator)) return;
updateSavedSearch(latestState, timelineId, () => {
updateSavedSearch(latestState, timelineId, function onUpdate() {
combinedDiscoverSavedSearchStateRef.current = latestState;
});
}, [
Expand Down

0 comments on commit d6470df

Please sign in to comment.