Allow tab name 0
This commit is contained in:
1 parent
898fb88d86
commit
e663994c9b
2 files changed
+2
-2
No files matched your search
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
||||
import { TabContext } from "utils/contexts/tab";
|
||||
|
||||
export function slugify(tabName) {
|
||||
return tabName ? encodeURIComponent(tabName.toString().replace(/\s+/g, '-').toLowerCase()) : ''
|
||||
return tabName !== undefined ? encodeURIComponent(tabName.toString().replace(/\s+/g, '-').toLowerCase()) : ''
|
||||
}
|
||||
|
||||
export default function Tab({ tab }) {
|
||||
|
||||
Reference in new issue
Block a user