1
0
mirror of https://github.com/usebruno/bruno.git synced 2025-01-12 00:48:54 +01:00

chore: cleanup

This commit is contained in:
Anoop M D 2022-03-18 03:13:20 +05:30
parent b3ac4ce644
commit c8e679b7e0
2 changed files with 0 additions and 14 deletions
renderer/providers/Store

View File

@ -2,7 +2,6 @@ const SIDEBAR_COLLECTION_ITEM_CLICK = "SIDEBAR_COLLECTION_ITEM_CLICK";
const SIDEBAR_COLLECTION_NEW_FOLDER = "SIDEBAR_COLLECTION_NEW_FOLDER";
const SIDEBAR_COLLECTION_NEW_REQUEST = "SIDEBAR_COLLECTION_NEW_REQUEST";
const LOAD_COLLECTIONS_FROM_IDB = "LOAD_COLLECTIONS_FROM_IDB";
const COLLECTION_CREATE = "COLLECTION_CREATE";
const REQUEST_TAB_CLICK = "REQUEST_TAB_CLICK";
const REQUEST_TAB_CLOSE = "REQUEST_TAB_CLOSE";
const REQUEST_URL_CHANGED = "REQUEST_URL_CHANGED";
@ -23,7 +22,6 @@ export default {
SIDEBAR_COLLECTION_NEW_FOLDER,
SIDEBAR_COLLECTION_NEW_REQUEST,
LOAD_COLLECTIONS_FROM_IDB,
COLLECTION_CREATE,
REQUEST_TAB_CLICK,
REQUEST_TAB_CLOSE,
REQUEST_URL_CHANGED,

View File

@ -122,18 +122,6 @@ const reducer = (state, action) => {
});
}
case actions.COLLECTION_CREATE: {
return produce(state, (draft) => {
// todo: collection names must be unique across a user account
draft.collections = draft.collections || [];
draft.collections.push({
uid: nanoid(),
name: action.name,
items: []
});
});
}
case actions.REQUEST_TAB_CLICK: {
return produce(state, (draft) => {
draft.activeRequestTabUid = action.requestTab.uid;