From a6cb3ddd053b09c7f4b6249651c60d360e51f9a3 Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 3 Apr 2020 09:47:32 +1100 Subject: [PATCH] Update wizard.js.es6 --- assets/javascripts/discourse/lib/wizard.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/discourse/lib/wizard.js.es6 b/assets/javascripts/discourse/lib/wizard.js.es6 index 1ec21516..690b249a 100644 --- a/assets/javascripts/discourse/lib/wizard.js.es6 +++ b/assets/javascripts/discourse/lib/wizard.js.es6 @@ -3,11 +3,11 @@ function selectKitContent(content) { } function generateName(id) { - return sentenceCase(id); + return id ? sentenceCase(id) : ''; } function generateId(name) { - return snakeCase(name); + return name ? snakeCase(name) : ''; } function sentenceCase(string) {