Skip to content

Commit

Permalink
fixed the navbor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
prthm20 committed Aug 8, 2024
1 parent d2ebc57 commit c8089a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playground/components/Tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Tab extends Component<TabProps> {
<TabLink
onClick={(event) => {
event.preventDefault();
if (parentCallback && tabIndex) {
if (parentCallback && tabIndex !== undefined) {
parentCallback(tabIndex);
}
}}
Expand Down

0 comments on commit c8089a6

Please sign in to comment.