diff --git a/server/models/pages.js b/server/models/pages.js index 2e42c703..9aa3f9e4 100644 --- a/server/models/pages.js +++ b/server/models/pages.js @@ -391,7 +391,7 @@ module.exports = class Page extends Model { // -> Ruslan: Check for title changes => Update all other links names to this page // На pageLinks опираться нельзя, т.r. авто-сгенерированные страницы не добавляются в pageLink - if (ogPage.title !== opts.title) { + if (opts.title && ogPage.title !== opts.title) { const allPages = await WIKI.models.pages.query() const mentionedInPages = allPages.filter(page => page.content.includes(ogPage.path))