1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-13 00:10:37 +02:00

Desktop: Re-render note when resources are changed (#10459)

This commit is contained in:
Henry Heino
2024-05-28 03:30:56 -07:00
committed by GitHub
parent b0d0e641ea
commit b8caf08fac
3 changed files with 53 additions and 11 deletions

View File

@ -637,7 +637,7 @@ export default class Resource extends BaseItem {
}
const output = await super.save(resource, options);
if (isNew) eventManager.emit(EventName.ResourceCreate);
eventManager.emit(isNew ? EventName.ResourceCreate : EventName.ResourceChange, { id: output.id });
return output;
}