Skip to content

Commit d6f8918

Browse files
committed
Minor edits
1 parent b953ada commit d6f8918

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/App.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ class App extends React.Component<{}, AppState> {
121121
* @param obj a JSON-formatted string
122122
*/
123123
public handleModelChange(obj: go.IncrementalData) {
124-
if (obj === null) return;
125124
const insertedNodeKeys = obj.insertedNodeKeys;
126125
const modifiedNodeData = obj.modifiedNodeData;
127126
const removedNodeKeys = obj.removedNodeKeys;

src/components/Diagram.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ export class DiagramWrapper extends React.Component<DiagramProps, {}> {
5555
}
5656

5757
/**
58-
* Diagram initialization method, which is passed to the Diagram component.
58+
* Diagram initialization method, which is passed to the ReactDiagram component.
5959
* This method is responsible for making the diagram and initializing the model, any templates,
6060
* and maybe doing other initialization tasks like customizing tools.
61-
* The model's data should not be set here, as the Diagram component handles that.
61+
* The model's data should not be set here, as the ReactDiagram component handles that.
6262
*/
6363
private initDiagram(): go.Diagram {
6464
const $ = go.GraphObject.make;

0 commit comments

Comments
 (0)