mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
simplified new entity ID allocation
This commit is contained in:
@@ -13,9 +13,7 @@ class Branch extends Entity {
|
||||
}
|
||||
|
||||
beforeSaving() {
|
||||
if (!this.branchId) {
|
||||
this.branchId = utils.newBranchId();
|
||||
}
|
||||
super.beforeSaving();
|
||||
|
||||
if (!this.isDeleted) {
|
||||
this.isDeleted = false;
|
||||
|
||||
Reference in New Issue
Block a user