summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/codeq/prolog.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js
index 4eed354..be4791a 100644
--- a/js/codeq/prolog.js
+++ b/js/codeq/prolog.js
@@ -371,7 +371,7 @@
editor.setValue(info.solution);
$('#title').text(problem.slug);
jqDescription.html(problem.description);
- $('#btn_code_plan').prop('disabled', problem.plan.length == 0);
+ $('#btn_code_plan').prop('disabled', (problem.plan || '').length == 0);
editor.on('change', function (instance, changeObj) {
var doc = editor.getDoc(),