fix(editor): apply title save response after the title editor is destroyed (#2576)

This commit is contained in:
Philip Okugbe 2026-10-15 13:31:11 +01:00 committed by GitHub
parent 6950a126bd
commit db104b79eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -149,7 +149,8 @@ export function TitleEditor({
},
};
if (page.title !== titleEditor.getText()) return;
if (!titleEditor.isDestroyed && page.title !== titleEditor.getText())
return;
updatePageData(page);