From 35e7270d0abec013fe7713442a9c5fcdd09e078a Mon Sep 17 00:00:00 2001 From: Lehtinen Teemu <lehtint6@t31300-lr146.org.aalto.fi> Date: Tue, 7 Jan 2020 15:45:37 +0200 Subject: [PATCH] Handle unexisting problem names --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index da78c1c..a955418 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,9 @@ Package.register = function (handlers, app, conf) { Package.initialize = function (req, params, handlers, cb) { let config = content[params.name]; - config.resetButton = true; + if (config) { + config.resetButton = true; + } cb(config); }; -- GitLab