From 898fb88d86e5b4d33d24f4fa95bb063fc2c3350b Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 16 Sep 2023 14:37:06 -0700 Subject: [PATCH] Allow numbers in tab name (#2004) --- src/components/tab.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tab.jsx b/src/components/tab.jsx index c44c88a25..19501313b 100644 --- a/src/components/tab.jsx +++ b/src/components/tab.jsx @@ -4,7 +4,7 @@ import classNames from "classnames"; import { TabContext } from "utils/contexts/tab"; 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 }) {