From f4ac7fad14b61131aabe657a0e178e9936a8d8d8 Mon Sep 17 00:00:00 2001 From: Brenden Harrell Date: Sun, 26 Sep 2021 21:43:42 -0500 Subject: [PATCH] move required node modules --- Projects/Education/UI/Spaces/Docs-Space/DocsSpace.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Projects/Education/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Education/UI/Spaces/Docs-Space/DocsSpace.js index d86e316fc..f949a2798 100644 --- a/Projects/Education/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Education/UI/Spaces/Docs-Space/DocsSpace.js @@ -239,11 +239,14 @@ function newEducationDocSpace() { } function changeCurrentBranch(branch, doNotNavigate) { - httpRequest(undefined, 'App/Checkout/' + branch, onResponse) + httpRequest(undefined, 'App/Checkout/' + branch, onResponse()) if (doNotNavigate !== true) { UI.projects.education.spaces.docsSpace.navigateTo('Foundations', 'Topic', 'Switching Branches - Changing Current Branch') } + const path = require("path"); + const process = require("process"); + const { exec } = require("child_process"); function onResponse(err, data) { /* Lets check the result of the call through the http interface */ data = JSON.parse(data) @@ -255,10 +258,6 @@ function newEducationDocSpace() { if (doNotNavigate === true) { return } // Run Node Setup to Update dependencies upon branch switch - const path = require("path"); - const process = require("process"); - const { exec } = require("child_process"); - let dir = path.join( process.cwd(), "..", "..", "..", "..", ".." ) let command = "node setup"; exec( command,