Skip to content
Open
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ function NetworkAreaDiagramContent(props: NetworkAreaDiagramContentProps) {
equipmentSubtype
);
};
setShouldDisplayTooltip(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is needed to hide the tooltip when right clicking on an element and choosing to display the element in the table.


if (equipmentType === EquipmentType.HVDC_LINE) {
// need a query to know the HVDC converters type (LCC vs VSC)
Expand Down Expand Up @@ -287,7 +288,15 @@ function NetworkAreaDiagramContent(props: NetworkAreaDiagramContentProps) {
}
}
},
[isEditNadMode, openEquipmentMenu, currentNode?.id, currentRootNetworkUuid, studyUuid, snackError]
[
isEditNadMode,
openEquipmentMenu,
currentNode?.id,
currentRootNetworkUuid,
studyUuid,
snackError,
setShouldDisplayTooltip,
]
);

const handleAddVoltageLevel = useCallback(
Expand Down
Loading