mirror of
https://github.com/zadam/trilium.git
synced 2025-01-09 16:49:11 +08:00
sync isExpanded when it's a new branch
This commit is contained in:
parent
b6935abcc9
commit
0ece9bd1be
1 changed files with 5 additions and 1 deletions
|
@ -69,7 +69,11 @@ async function updateBranch(entity, sourceId) {
|
|||
|
||||
await sql.transactional(async () => {
|
||||
if (orig === null || orig.dateModified < entity.dateModified) {
|
||||
delete entity.isExpanded;
|
||||
// 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;
|
||||
}
|
||||
|
||||
await sql.replace('branches', entity);
|
||||
|
||||
|
|
Loading…
Reference in a new issue