Skip to content

Commit

Permalink
Fix non responsive action group showing when it shouldn't
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxhoundn committed Feb 21, 2023
1 parent 4eb8ac1 commit 2a030fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Panel/NonResponsiveActions.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { size } from 'lodash';
import { memo } from 'react';
import { IReqorePanelProps } from '.';
import { ReqoreButton } from '../..';
Expand Down Expand Up @@ -34,7 +35,7 @@ export const ReqorePanelNonResponsiveActions = memo(
isSmall,
...rest
}: IReqorePanelNonResponsiveActionsProps) => {
if (!show) {
if (!show || (!size(children) && !showControlButtons)) {
return null;
}

Expand Down

0 comments on commit 2a030fc

Please sign in to comment.