diff --git a/framework/core/js/lib/models/discussion.js b/framework/core/js/lib/models/discussion.js index 0e7be1708..9e26da2f3 100644 --- a/framework/core/js/lib/models/discussion.js +++ b/framework/core/js/lib/models/discussion.js @@ -18,7 +18,7 @@ class Discussion extends Model { Discussion.prototype.id = Model.prop('id'); Discussion.prototype.title = Model.prop('title'); -Discussion.prototype.slug = computed('title', title => title.toLowerCase().replace(/[^a-z0-9]/gi, '-').replace(/-+/g, '-').replace(/-$|^-/g, '')); +Discussion.prototype.slug = computed('title', title => title.toLowerCase().replace(/[^a-z0-9]/gi, '-').replace(/-+/g, '-').replace(/-$|^-/g, '') || '-'); Discussion.prototype.startTime = Model.prop('startTime', Model.date); Discussion.prototype.startUser = Model.one('startUser');