Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix: add new row as map instead of list, bug fix due to updates

lemmy mwaura864757e42854
diff --git a/frontend/pages/dashboard/[id].js b/frontend/pages/dashboard/[id].js
index 6a0822c87a..e6b59bae2c 100644
--- a/frontend/pages/dashboard/[id].js
+++ b/frontend/pages/dashboard/[id].js
@@ -318,7 +318,12 @@ export default function Dashboard() {
const addRow = () => {
setIsNew(false);
- setData([...data, [guidGenerator(), data.length, "", "", "shared"]]);
+ setData([...data, {
+ id:guidGenerator(),
+ key:"",
+ value:"",
+ type:"shared"
+ }]);
};
const deleteRow = (id) => {