Fix: correctly decode tab names with special chars (#3797)
Some checks failed
Docker / Linting Checks (push) Has been cancelled
Docker / Docker Build & Push (push) Has been cancelled

This commit is contained in:
shamoon
2024-07-30 20:56:26 -07:00
committed by GitHub
parent ed928bfa25
commit 9484a9ff56

View File

@@ -14,7 +14,7 @@ export function slugifyAndEncode(tabName) {
export default function Tab({ tab }) { export default function Tab({ tab }) {
const { activeTab, setActiveTab } = useContext(TabContext); const { activeTab, setActiveTab } = useContext(TabContext);
const matchesTab = decodeURI(activeTab) === slugify(tab); const matchesTab = decodeURIComponent(activeTab) === slugify(tab);
return ( return (
<li <li