| commit | 10ff134f60a350c2d2aa8742a941f48af0baa77c | [log] [tgz] |
|---|---|---|
| author | gio <gio@v1.dodo.cloud> | Sat Jul 05 10:22:15 2025 +0000 |
| committer | gio <gio@v1.dodo.cloud> | Sun Jul 06 05:21:45 2025 +0000 |
| tree | 00e217692c5bf20d0e97ee6c3e51048b6dd75417 | |
| parent | 8edf6c7753525fb9680c90ef09a6fdd16bfb818b [diff] [blame] |
Canvas: Use GraphSchema to validate state Change-Id: I342c8959c97f3486c4a7cb2aff92fb930a2b3146
diff --git a/apps/canvas/front/src/components/actions.tsx b/apps/canvas/front/src/components/actions.tsx index 5ea2920..f283ec8 100644 --- a/apps/canvas/front/src/components/actions.tsx +++ b/apps/canvas/front/src/components/actions.tsx
@@ -139,7 +139,10 @@ headers: { "Content-Type": "application/json", }, - body: JSON.stringify(instance.toObject()), + body: JSON.stringify({ + type: "graph", + graph: instance.toObject(), + }), }); if (resp.ok) { info("Save succeeded");