refactor(perf):go back to passing index and using it to mutate keypair

This commit is contained in:
lemmy mwaura
2022-12-11 22:25:16 +03:00
parent 864757e428
commit d456dcef28
3 changed files with 36 additions and 33 deletions
@@ -68,9 +68,10 @@ const getSecretsForProject = async ({
setFileState(tempFileState);
setData(
tempFileState.map((line) => {
tempFileState.map((line, index) => {
return {
id: guidGenerator(),
pos: index,
key: line["key"],
value: line["value"],
type: line["type"]