Skip to content
Snippets Groups Projects
Commit c46fe73f authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Small improvement

parent ae77bec0
No related branches found
No related tags found
No related merge requests found
Pipeline #57039 passed
......@@ -8,11 +8,9 @@ interface TabHeaderProps {
}
function TabHeader({ tabs, initialTabIndex, children }: TabHeaderProps) {
if (initialTabIndex === undefined) {
initialTabIndex = 0;
}
const [currentIndex, setCurrentIndex] = useState<number>(initialTabIndex);
const [currentIndex, setCurrentIndex] = useState<number>(
initialTabIndex ?? 0
);
return (
<div className={"tab-view"}>
<div className={"tab-header"}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment