mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-09 14:58:47 +00:00
Allow tab name 0
This commit is contained in:
parent
898fb88d86
commit
e663994c9b
2 changed files with 2 additions and 2 deletions
|
@ -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 }) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue