refactor: remove unused index values

This commit is contained in:
lemmy mwaura
2022-12-11 17:54:19 +03:00
parent 36372ebef3
commit fa53a9e41d
@@ -68,7 +68,7 @@ const getSecretsForProject = async ({
setFileState(tempFileState); setFileState(tempFileState);
setData( setData(
tempFileState.map((line, index) => { tempFileState.map((line) => {
return { return {
id: guidGenerator(), id: guidGenerator(),
key: line["key"], key: line["key"],
@@ -76,12 +76,8 @@ const getSecretsForProject = async ({
type: line["type"] type: line["type"]
} }
}) })
// .sort((a, b) =>
// sortMethod == "alphabetical"
// ? a[2].localeCompare(b[2])
// : b[2].localeCompare(a[2])
// )
); );
return tempFileState.map((line, index) => [ return tempFileState.map((line, index) => [
guidGenerator(), guidGenerator(),
index, index,