Allow numbers in tab name (#2004)

pull/2023/head
shamoon 1 year ago committed by GitHub
parent 6f5c2a8c1e
commit 898fb88d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,7 @@ import classNames from "classnames";
import { TabContext } from "utils/contexts/tab"; import { TabContext } from "utils/contexts/tab";
export function slugify(tabName) { export function slugify(tabName) {
return tabName ? encodeURIComponent(tabName.replace(/\s+/g, '-').toLowerCase()) : '' return tabName ? encodeURIComponent(tabName.toString().replace(/\s+/g, '-').toLowerCase()) : ''
} }
export default function Tab({ tab }) { export default function Tab({ tab }) {

Loading…
Cancel
Save