From a9314f244716934ab532fe86afdd66998e74aea2 Mon Sep 17 00:00:00 2001 From: nickofolas Date: Mon, 17 Jan 2022 16:44:55 -0600 Subject: [PATCH] Show N/A when editing a txt file --- 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 f74486f94..276613a18 100644 --- a/src/ScriptEditor/ui/ScriptEditorRoot.tsx +++ b/src/ScriptEditor/ui/ScriptEditorRoot.tsx @@ -240,7 +240,7 @@ export function Root(props: IProps): React.ReactElement { async function updateRAM(newCode: string): Promise { if (currentScript != null && currentScript.fileName.endsWith(".txt")) { - debouncedSetRAM("", []); + debouncedSetRAM("N/A", [["N/A", ""]]); return; } setUpdatingRam(true);