www.spaceplanner.app

Web client to the spaceplanner API
git clone git://jacobedwards.org/www.spaceplanner.app
Log | Files | Refs

commit cb15ae130ceed6d1637d89e01b8a743426327073
parent 4766907a871e81e7e1ed120f7fd7bacf9bba92a8
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date:   Thu,  5 Sep 2024 10:42:51 -0700

Add applyDiffs todo

If something fails in applyOp I want the editor's diff to be set
correctly. Right now it's set as if nothing was applied if something
throws an error.

Just not a priority.

Diffstat:
Mfiles/floorplans/floorplan/editor.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/files/floorplans/floorplan/editor.js b/files/floorplans/floorplan/editor.js @@ -589,6 +589,7 @@ export class FloorplanEditor { applyDiffs(diffs) { for (let op in diffs) { + // TODO: Catch errors and update this.diff accordingly this.applyOp(diffs[op]) } }