clean up sharing

This commit is contained in:
1ilit
2025-04-05 15:41:26 +04:00
parent 24c77a95e9
commit 1367ef3745
4 changed files with 34 additions and 4 deletions

View File

@@ -287,8 +287,8 @@ export default function WorkSpace() {
const loadFromGist = async (shareId) => {
try {
const res = await get(shareId);
const diagramSrc = res.data.files["share.json"].content;
const gist = await get(shareId);
const diagramSrc = gist.files["share.json"].content;
const d = JSON.parse(diagramSrc);
setGistId(shareId);
setUndoStack([]);