diff --git a/controllers/topics.js b/controllers/topics.js index 9c5105c767..3ee4f6aae3 100644 --- a/controllers/topics.js +++ b/controllers/topics.js @@ -64,8 +64,8 @@ const editTopicHandler = (req, res, next) => { req ); - if (lesson.name) lesson.name = decode(lesson.name); - if (lesson.content) lesson.content = decode(lesson.content); + if (lesson.title) lesson.title = decode(lesson.title); + if (lesson.contents) lesson.contents = decode(lesson.contents); res.render("topic/edit-topic", { action,