Skip to content

Commit

Permalink
fix: get body parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Guillemin committed May 23, 2024
1 parent ecf2e23 commit 2f5b5ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/usePersistance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function usePersistance(persistanceApiUrl: string | undefined) {
if (!persistanceApiUrl) return;

const response = await getFile(persistanceApiUrl);
if (response.data.blob != '') {
app.loadDocument(JSON.parse(response.data.blob).document as TDDocument);
if (response.data.data != '') {
app.loadDocument(JSON.parse(response.data.data).document as TDDocument);
app.document.name = response.data.title;
}
},
Expand Down

0 comments on commit 2f5b5ee

Please sign in to comment.