chore(ScriptEditor): Remove extra / from files in a folder

This commit is contained in:
LJNeon 2022-09-23 19:23:54 -07:00
parent 69eda4340e
commit a464563e1c
No known key found for this signature in database
GPG Key ID: 837C6B23D22030BE

@ -824,7 +824,7 @@ export function Root(props: IProps): React.ReactElement {
...colorProps,
};
const scriptTabText = `${hostname}:~/${fileName} ${dirty(index)}`;
const scriptTabText = `${hostname}:~${fileName.startsWith("/") ? "" : "/"}${fileName} ${dirty(index)}`;
return (
<Draggable
key={fileName + hostname}