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

This commit is contained in:
lemmy mwaura
2022-12-11 17:57:40 +03:00
parent fa53a9e41d
commit 864757e428

View File

@@ -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) => {