acenturyandabit / acenturyandabit/workflowish

Remove all instances of this getSetItems interface and replace it with just setI...

Aperta
#75 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
todo
Lingua principale
TypeScript
Stelle
0
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

https://api.github.com/acenturyandabit/workflowish/blob/d9dac81df2e15a1b543aaf24406286b3278b7042/src/Workflowish/index.tsx#L158

```javascript

},
disableDelete: () => (itemTree.children.length == 1),
getSetItems: (keys: string[], getSetter: TreeNodesGetSetter) => {
props.transformedDataAndSetter.setItemsByKey((oldData: TransformedData) => {
// TODO: Remove all instances of this getSetItems interface and replace it with just setItemsByKey
const oldItems = keys.map(key => oldData.keyedNodes[key])
const newNodes = getSetter(oldItems);
return newNodes.reduce((nodeDict, node) => {
nodeDict[node.id] = node;
return nodeDict;
}, {} as Record);
});
},
thisItem: itemTree
})}
>)
})}
}

```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.