fix error any type 🚑
continuous-integration/drone/push Build is failing Details

pull/90/head
Pierre Ferreira 1 year ago
parent 58e0e944df
commit 2c021e1056

@ -325,6 +325,7 @@ const MyGraphComponent: React.FC<MyGraphComponentProps> = ({onNodeClick, handleS
dailyEnigme.forEach((pairs, index) => { dailyEnigme.forEach((pairs, index) => {
pairs.forEach((pair) => { pairs.forEach((pair) => {
const i = indices.findIndex((indice) => pair.first.getId() === indice.getId()) const i = indices.findIndex((indice) => pair.first.getId() === indice.getId())
//@ts-ignore
const node = networkData.nodes.get().find((n) => index == n.id) const node = networkData.nodes.get().find((n) => index == n.id)
if (node != undefined){ if (node != undefined){
networkData.nodes.update({id: node.id, label: node.label + positionToEmoji(i, pair.second)}) networkData.nodes.update({id: node.id, label: node.label + positionToEmoji(i, pair.second)})

Loading…
Cancel
Save