mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #3762 from blia/dev
Fixed TypeError when updating slug
This commit is contained in:
commit
734fad2a64
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
|
|||
|
||||
newSlug = newSlug || slug;
|
||||
|
||||
newSlug = newSlug.trim();
|
||||
newSlug = newSlug && newSlug.trim();
|
||||
|
||||
// Ignore unchanged slugs or candidate slugs that are empty
|
||||
if (!newSlug || slug === newSlug) {
|
||||
|
|
Loading…
Add table
Reference in a new issue