From a464563e1c1c39c2f433b6c05a4c2371d332bc08 Mon Sep 17 00:00:00 2001 From: LJNeon <23249107+LJNeon@users.noreply.github.com> Date: Fri, 23 Sep 2022 19:23:54 -0700 Subject: [PATCH] chore(ScriptEditor): Remove extra / from files in a folder --- src/ScriptEditor/ui/ScriptEditorRoot.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScriptEditor/ui/ScriptEditorRoot.tsx b/src/ScriptEditor/ui/ScriptEditorRoot.tsx index 3cb10e3bd..d4f256aa3 100644 --- a/src/ScriptEditor/ui/ScriptEditorRoot.tsx +++ b/src/ScriptEditor/ui/ScriptEditorRoot.tsx @@ -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 (