mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 06:28:11 +00:00
refactor: remove unused index values
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user