fix ci build 💚
continuous-integration/drone/push Build is failing Details

pull/90/head
Pierre Ferreira 8 months ago
parent d1e47d994e
commit dd4eb3aa06

@ -2,6 +2,10 @@ kind: pipeline
type: docker
name: default
trigger:
event:
- push
steps:
- name: build
@ -15,7 +19,7 @@ steps:
image: node:20
commands:
- cd ./cryptide_project
- npm install --legacy-peer-deps
#- npm install --legacy-peer-deps
- npm run test
- ls ./test/coverage
- sonar-scanner -Dsonar.projectKey=Learnihon -Dsonar.sources=. -Dsonar.host.url=$${PLUGIN_SONAR_HOST}

@ -65,7 +65,7 @@ const MyGraphComponent: React.FC<MyGraphComponentProps> = ({onNodeClick, handleS
}
}
}
//* fonction qui reinitialise le graphe
const resGraph = () => { //? comment accéder au nework ??
const savedGraphStateString = localStorage.getItem('graphState');
@ -132,6 +132,7 @@ const MyGraphComponent: React.FC<MyGraphComponentProps> = ({onNodeClick, handleS
})
socket.on("node checked",(id, works, color, newPlayerIndex) => {
//@ts-ignore
const node = nodes.get().find((n) => id == n.id)
if (node!=undefined){
onNodeClick(false)

Loading…
Cancel
Save