mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 16:56:34 +01:00
no need to create template relation if there is already one owned
This commit is contained in:
@@ -270,9 +270,9 @@ function transactional(func) {
|
||||
return ret;
|
||||
}
|
||||
catch (e) {
|
||||
const entityChanges = cls.getAndClearEntityChangeIds();
|
||||
const entityChangeIds = cls.getAndClearEntityChangeIds();
|
||||
|
||||
if (entityChanges.length > 0) {
|
||||
if (entityChangeIds.length > 0) {
|
||||
log.info("Transaction rollback dirtied the becca, forcing reload.");
|
||||
|
||||
require('../becca/becca_loader').load();
|
||||
|
||||
Reference in New Issue
Block a user