diff --git a/package-lock.json b/package-lock.json
index edc3c00e0a..0beea7ad9f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -17,7 +17,7 @@
"@mui/lab": "5.0.0-alpha.169",
"@mui/material": "^5.15.14",
"@mui/x-tree-view": "^6.17.0",
- "@powsybl/network-viewer": "1.1.1",
+ "@powsybl/network-viewer": "file:../../../~powsybl/powsybl-diagram-viewer/powsybl-network-viewer-1.2.0.tgz",
"@reduxjs/toolkit": "^2.2.3",
"@svgdotjs/svg.js": "^3.2.0",
"@svgdotjs/svg.panzoom.js": "^2.1.2",
@@ -5176,9 +5176,11 @@
}
},
"node_modules/@powsybl/network-viewer": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/@powsybl/network-viewer/-/network-viewer-1.1.1.tgz",
- "integrity": "sha512-spXy3EnRlbvPbsq4ue3ECA+Dz7z/9WEOOaXoGtPyMyZtbHlDJCpWUoVwg7iVbr33uYMAY8oDvqu+sLszZ9aNCw==",
+ "version": "1.2.0",
+ "resolved": "file:../../../~powsybl/powsybl-diagram-viewer/powsybl-network-viewer-1.2.0.tgz",
+ "integrity": "sha512-UbZ6jmVym8bfkYKgMBh1N9h+Y2B38J2F7r7xKqM0zDHCafSn9867sJIWselTCy5hzEzFmBunAfTjFRMcUMiulA==",
+ "hasInstallScript": true,
+ "license": "MPL-2.0",
"dependencies": {
"@mapbox/mapbox-gl-draw": "^1.4.3",
"@svgdotjs/svg.js": "^3.2.0",
diff --git a/package.json b/package.json
index 6a05aceba3..cbdaa583ef 100644
--- a/package.json
+++ b/package.json
@@ -13,10 +13,11 @@
"@mui/lab": "5.0.0-alpha.169",
"@mui/material": "^5.15.14",
"@mui/x-tree-view": "^6.17.0",
- "@powsybl/network-viewer": "1.1.1",
+ "@powsybl/network-viewer": "file:../../../~powsybl/powsybl-diagram-viewer/powsybl-network-viewer-1.2.0.tgz",
"@reduxjs/toolkit": "^2.2.3",
"@svgdotjs/svg.js": "^3.2.0",
"@svgdotjs/svg.panzoom.js": "^2.1.2",
+ "@xyflow/react": "^12.3.2",
"ag-grid-community": "^31.0.0",
"ag-grid-react": "^31.2.0",
"cheap-ruler": "^3.0.2",
@@ -35,7 +36,6 @@
"react-beautiful-dnd": "^13.1.1",
"react-csv-downloader": "^3.1.0",
"react-dom": "^18.2.0",
- "@xyflow/react": "^12.3.2",
"react-grid-layout": "^1.4.4",
"react-hook-form": "^7.51.2",
"react-intl": "^6.6.4",
diff --git a/src/components/diagrams/singleLineDiagram/single-line-diagram-content.tsx b/src/components/diagrams/singleLineDiagram/single-line-diagram-content.tsx
index dd2a8b4d68..c9af6981c2 100644
--- a/src/components/diagrams/singleLineDiagram/single-line-diagram-content.tsx
+++ b/src/components/diagrams/singleLineDiagram/single-line-diagram-content.tsx
@@ -411,7 +411,7 @@ function SingleLineDiagramContent(props: SingleLineDiagramContentProps) {
handleOpenModificationDialog={handleOpenModificationDialog}
onOpenDynamicSimulationEventDialog={handleOpenDynamicSimulationEventDialog}
currentNode={currentNode}
- studyUuid={studyUuid as UUID}
+ studyUuid={studyUuid}
modificationInProgress={modificationInProgress}
setModificationInProgress={setModificationInProgress}
/>
@@ -430,11 +430,7 @@ function SingleLineDiagramContent(props: SingleLineDiagramContentProps) {
equipmentMenu.equipmentId &&
equipmentMenu.equipmentType === equipmentType && (