From 8554aed11472d9fff8f062ec380d58aaf2d16d88 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 16 Sep 2023 14:36:27 -0700 Subject: [PATCH] Allow numbers in tab name --- 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 c44c88a2..19501313 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 }) {