mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
sync isExpanded when it's a new branch
This commit is contained in:
@@ -69,7 +69,11 @@ async function updateBranch(entity, sourceId) {
|
|||||||
|
|
||||||
await sql.transactional(async () => {
|
await sql.transactional(async () => {
|
||||||
if (orig === null || orig.dateModified < entity.dateModified) {
|
if (orig === null || orig.dateModified < entity.dateModified) {
|
||||||
|
// isExpanded is not synced unless it's a new branch instance
|
||||||
|
// otherwise in case of full new sync we'll get all branches (even root) collapsed.
|
||||||
|
if (orig) {
|
||||||
delete entity.isExpanded;
|
delete entity.isExpanded;
|
||||||
|
}
|
||||||
|
|
||||||
await sql.replace('branches', entity);
|
await sql.replace('branches', entity);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user