Skip to content

Commit

Permalink
fix(ProjectListItemCollapsable): fix offset blinking
Browse files Browse the repository at this point in the history
  • Loading branch information
asabotovich committed Jun 28, 2023
1 parent 9720c34 commit 87b6ca0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const ProjectListItemCollapsable: React.FC<ProjectListItemCollapsableProp
const onClickEnabled = childs.length;
const contentHidden = !childs.length || collapsed || loading;

const offset = collapseOffset * (contentHidden ? deep - 1 : deep);
const offset = collapseOffset * (deep > 0 && contentHidden ? deep - 1 : deep);

const onGoalsButtonClick = useCallback(
(e: MouseEvent) => {
Expand Down

0 comments on commit 87b6ca0

Please sign in to comment.