Skip to content

Commit

Permalink
[822] Fix a crash while clicking on an edge
Browse files Browse the repository at this point in the history
Bug: #822
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
  • Loading branch information
sbegaudeau authored and pcdavid committed Jan 17, 2022
1 parent 0942b5f commit 6513643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/diagram/DiagramWebSocketContainer.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export interface GQLRepresentationDescription {
export interface GQLDiagramDescription extends GQLRepresentationDescription {
toolSections: GQLToolSection[];
nodeDescriptions: GQLNodeDescription[];
edgdDescriptions: GQLEdgeDescription[];
edgeDescriptions: GQLEdgeDescription[];
}

export interface GQLNodeDescription {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/diagram/palette/ContextualPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const findEdgeDescription = (
diagramDescription: GQLDiagramDescription,
edgeDescriptionId: string
): GQLEdgeDescription | null => {
return diagramDescription.edgdDescriptions.filter((edgeDescription) => edgeDescription.id === edgeDescriptionId)[0];
return diagramDescription.edgeDescriptions.filter((edgeDescription) => edgeDescription.id === edgeDescriptionId)[0];
};

/**
Expand Down

0 comments on commit 6513643

Please sign in to comment.