mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
parent
3cb7810d69
commit
93a78f198b
@ -69,7 +69,7 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
beforeUpdate: async model => {
|
||||
if (model.getUpdate().title) {
|
||||
if (model.getUpdate() && model.getUpdate().title) {
|
||||
model.update({
|
||||
slug: slugify(model.getUpdate().title),
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user