Skip to content

Commit

Permalink
fix toggling series categories on library grid
Browse files Browse the repository at this point in the history
  • Loading branch information
xgi committed Apr 19, 2023
1 parent 4cf0bb5 commit 7b008b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/library/LibraryGridContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const LibraryGridContextMenu: React.FC<Props> = (props: Props) => {
}, [categories]);

useEffect(() => {
const totalItemHeight = (2 + availableCategories.length) * 40;
const totalItemHeight = (3 + availableCategories.length) * 40;
setMenuHeight(Math.min(MAX_HEIGHT, totalItemHeight));

setCategories(props.series?.categories || []);
Expand Down

0 comments on commit 7b008b8

Please sign in to comment.