Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
added entitymanager to openFile call
Browse files Browse the repository at this point in the history
  • Loading branch information
kjacks committed Feb 18, 2020
1 parent afd8952 commit 6c89dbe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ export default class Vis2 extends React.Component <IAppProps, IAppState> {

openFile(data: any) {
const { layout, viewport } = JSON.parse(data)

this.setState({
// @ts-ignore
layout: GraphLayout.fromJSON(config, layout),
layout: GraphLayout.fromJSON(config, entityManager, layout),
viewport: Viewport.fromJSON(config, viewport),
})
}
Expand Down

0 comments on commit 6c89dbe

Please sign in to comment.