Skip to content

Commit 341ff54

Browse files
authored
fix: Update sort-link.tsx to include resourceId in memo check
1 parent 5eed304 commit 341ff54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/frontend/components/app/sort-link.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const checkSortProps = (
3838
nextProps: Readonly<SortLinkProps>,
3939
) => (prevProps.direction === nextProps.direction
4040
&& prevProps.property.propertyPath === nextProps.property.propertyPath
41-
&& prevProps.sortBy === nextProps.sortBy)
41+
&& prevProps.sortBy === nextProps.sortBy
42+
&& prevProps.property.resourceId === nextProps.property.resourceId)
4243

4344
export default memo(SortLink, checkSortProps)

0 commit comments

Comments
 (0)