Skip to content

Commit

Permalink
fix(Footer): fix warning with setState on unmounted component (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
mournfulCoroner authored Apr 27, 2024
1 parent 7d4f559 commit a67b62c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function useOverflowingHorizontalListItems<ItemType>({
}

const updateContainerSize = (entries: ResizeObserverEntry[]) => {
if (entries.length > 0) {
if (entries.length > 0 && footerMenu) {
setContainerWidth(entries[0].contentRect.width);
}
};
Expand Down

0 comments on commit a67b62c

Please sign in to comment.