From 2ec49a6b789dcf2cd396e1b495a04cf9424de197 Mon Sep 17 00:00:00 2001 From: Raathigeshan Kugarajan Date: Thu, 11 Jan 2018 20:34:51 +1100 Subject: [PATCH] Fix process custom script error --- app/src/renderer/util/Process.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/renderer/util/Process.ts b/app/src/renderer/util/Process.ts index b150a59..4e4a284 100644 --- a/app/src/renderer/util/Process.ts +++ b/app/src/renderer/util/Process.ts @@ -25,7 +25,8 @@ export const createProcess = (workspace: any, args: string[]): any => { runtimeArgs.push(configPath); } - const runScript = getMajesticConfig(workspace.rootPath).runScript; + const majesticConfig = getMajesticConfig(workspace.rootPath); + const runScript = majesticConfig && majesticConfig.runScript; if (runScript) { // if the custom script starts with "jest", use the full path const initialToken = runScript.split(" ")[0];