We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 044ada2 commit 8374eb6Copy full SHA for 8374eb6
src/react/MainMenu.tsx
@@ -39,7 +39,11 @@ export default ({
39
bottomRightLinks
40
}: Props) => {
41
if (!bottomRightLinks?.trim()) bottomRightLinks = undefined
42
- const linksParsed = bottomRightLinks?.split(';').map(l => l.split(':')) as Array<[string, string]> | undefined
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
43
+ const linksParsed = bottomRightLinks?.split(';').map(l => {
44
+ const parts = l.split(':')
45
+ return [parts[0], parts.slice(1).join(':')]
46
+ }) as Array<[string, string]> | undefined
47
48
return (
49
<div className={styles.root}>
0 commit comments