This commit is contained in:
Vanessa 2023-10-29 00:15:36 +08:00
parent 6ee3761bc4
commit f46e0d48ad

View file

@ -527,7 +527,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
window.siyuan.mobile.editor.protyle.background.render(window.siyuan.mobile.editor.protyle.background.ial, window.siyuan.mobile.editor.protyle.block.rootID);
}
/// #else
if (protyle.background.ial.icon !== data.new.icon) {
if (protyle.background && protyle.background.ial.icon !== data.new.icon) {
protyle.background.ial.icon = data.new.icon;
protyle.background.render(protyle.background.ial, protyle.block.rootID);
protyle.model?.parent.setDocIcon(data.new.icon);