From ea3cb1c58d96eefd4aca07f5fd79ff1ba01f24fe Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 21 Oct 2024 17:42:35 +0100 Subject: [PATCH] Fix build command crash with no wiki folder Fixes #8694 --- core/modules/commands/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/commands/build.js b/core/modules/commands/build.js index 8471119d7..60456372d 100644 --- a/core/modules/commands/build.js +++ b/core/modules/commands/build.js @@ -24,7 +24,7 @@ var Command = function(params,commander) { Command.prototype.execute = function() { // Get the build targets defined in the wiki - var buildTargets = $tw.boot.wikiInfo.build; + var buildTargets = $tw.boot.wikiInfo && $tw.boot.wikiInfo.build; if(!buildTargets) { return "No build targets defined"; }