Skip to content

Commit acbe1a6

Browse files
committed
final changes
1 parent 80239df commit acbe1a6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/component/modals/ProjectDetails.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const ProjectDetails = ({ superState, dispatcher }) => {
3939
superState.curGraphInstance.setProjectAuthor(authorName);
4040
dispatcher({ type: T.SET_EDIT_DETAILS_MODAL, payload: false });
4141
}
42+
localStorageManager.saveAllgs();
4243
localStorageManager.setAuthorName(authorName);
4344
};
4445

src/graph-builder/graph-core/5-load-save.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,13 @@ class GraphLoadSave extends GraphUndoRedo {
170170
this.addEdge({ ...edge, sourceID: edge.source, targetID: edge.target }, 0);
171171
});
172172
content.actionHistory.forEach(({
173-
inverse, equivalent, tid, authorName,
173+
inverse, equivalent, tid,
174174
}) => {
175-
this.addAction(GraphLoadSave.parseAction(inverse), GraphLoadSave.parseAction(equivalent), tid, authorName);
175+
this.addAction(GraphLoadSave.parseAction(inverse), GraphLoadSave.parseAction(equivalent), tid);
176176
});
177177
this.setProjectName(content.projectName);
178178
this.setServerID(this.serverID || content.serverID);
179+
this.setProjectAuthor(content.authorName);
179180
}
180181

181182
saveLocalStorage() {

0 commit comments

Comments
 (0)