mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 03:48:13 +08:00
fix dirtying transform saved status by properly cloning transform object
This commit is contained in:
parent
a065a610c1
commit
1ce26ed704
1 changed files with 2 additions and 1 deletions
|
@ -209,7 +209,8 @@ function saveCurrentTransform() {
|
||||||
const newTransform = pzInstance.getTransform();
|
const newTransform = pzInstance.getTransform();
|
||||||
|
|
||||||
if (JSON.stringify(newTransform) !== JSON.stringify(mapData.transform)) {
|
if (JSON.stringify(newTransform) !== JSON.stringify(mapData.transform)) {
|
||||||
mapData.transform = newTransform;
|
// clone transform object
|
||||||
|
mapData.transform = JSON.parse(JSON.stringify(newTransform));
|
||||||
|
|
||||||
saveData();
|
saveData();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue