mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 10:28:00 +00:00
fix: add new row as map instead of list, bug fix due to updates
This commit is contained in:
@@ -318,7 +318,12 @@ export default function Dashboard() {
|
|||||||
|
|
||||||
const addRow = () => {
|
const addRow = () => {
|
||||||
setIsNew(false);
|
setIsNew(false);
|
||||||
setData([...data, [guidGenerator(), data.length, "", "", "shared"]]);
|
setData([...data, {
|
||||||
|
id:guidGenerator(),
|
||||||
|
key:"",
|
||||||
|
value:"",
|
||||||
|
type:"shared"
|
||||||
|
}]);
|
||||||
};
|
};
|
||||||
|
|
||||||
const deleteRow = (id) => {
|
const deleteRow = (id) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user