mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-07 22:18:33 +00:00
feat: AddFolder Modal
This commit is contained in:
@@ -76,7 +76,7 @@ const reducer = (state, action) => {
|
||||
if(collection) {
|
||||
collection.current.items.push({
|
||||
"uid": nanoid(),
|
||||
"name": "New Folder",
|
||||
"name": action.folderName,
|
||||
"depth": 1,
|
||||
"items": []
|
||||
});
|
||||
|
||||
@@ -20,7 +20,8 @@ const useIdb = (dispatch) => {
|
||||
type: actions.IDB_CONNECTION_READY,
|
||||
connection: connection
|
||||
});
|
||||
});
|
||||
})
|
||||
.catch((err) => console.log(err));
|
||||
}, []);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user