Skip to content

Commit

Permalink
fix: undefined type error
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishBarvaliya committed Feb 29, 2024
1 parent d12e909 commit 7d1228f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Toolbar/Toolbar.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const Toolbar = props => {
</div>
</div>
</div>
{props.selectedData.length ? <Stats data={props.selectedData} /> : null}
{props?.selectedData?.length ? <Stats data={props.selectedData} /> : null}
<div className={styles.actions}>{props.children}</div>
</div>
);
Expand Down

0 comments on commit 7d1228f

Please sign in to comment.