Fix: Save complete app state (#40)

* pass rest of appState in put request

* fix: support both legacy and current currentItemRoundness formats

Add union type to accept both the old object format {type, value} and
the new enum format for backwards compatibility with existing drawings.

---------

Co-authored-by: Zimeng Xiong <zxzimeng@gmail.com>
This commit is contained in:
Sushil Kumar
2026-01-20 23:32:03 +05:30
committed by Zimeng Xiong
parent 08d1479a01
commit 77c22916a8
2 changed files with 27 additions and 12 deletions
+1
View File
@@ -301,6 +301,7 @@ export const Editor: React.FC = () => {
try {
const persistableAppState = {
...appState,
viewBackgroundColor: appState?.viewBackgroundColor || '#ffffff',
gridSize: appState?.gridSize || null,
};