mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
feat: find keypair by id during mutation
This commit is contained in:
@@ -328,7 +328,7 @@ export default function Dashboard() {
|
||||
|
||||
const modifyValue = (value, id) => {
|
||||
setData((oldData) => {
|
||||
oldData[id].value = value;
|
||||
oldData.find(data => data.id === id).value = value;
|
||||
return [...oldData];
|
||||
});
|
||||
setButtonReady(true);
|
||||
@@ -336,7 +336,7 @@ export default function Dashboard() {
|
||||
|
||||
const modifyKey = (value, id) => {
|
||||
setData((oldData) => {
|
||||
oldData[id].key = value;
|
||||
oldData.find(data => data.id === id).key = value;
|
||||
return [...oldData];
|
||||
});
|
||||
setButtonReady(true);
|
||||
@@ -344,7 +344,7 @@ export default function Dashboard() {
|
||||
|
||||
const modifyVisibility = (value, id) => {
|
||||
setData((oldData) => {
|
||||
oldData[id].type = value;
|
||||
oldData.find(data => data.id === id).type = value;
|
||||
return [...oldData];
|
||||
});
|
||||
setButtonReady(true);
|
||||
|
||||
Reference in New Issue
Block a user