forked from extern/bruno
Merge pull request #1122 from maticrivo/fix/remove-console-log
fix: remove debug console.logs
This commit is contained in:
commit
07eee055d4
@ -10,7 +10,6 @@ const ResponseSave = ({ item }) => {
|
|||||||
|
|
||||||
const saveResponseToFile = () => {
|
const saveResponseToFile = () => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
console.log(item);
|
|
||||||
ipcRenderer
|
ipcRenderer
|
||||||
.invoke('renderer:save-response-to-file', response, item.requestSent.url)
|
.invoke('renderer:save-response-to-file', response, item.requestSent.url)
|
||||||
.then(resolve)
|
.then(resolve)
|
||||||
|
@ -21,7 +21,6 @@ const ImportCollectionLocation = ({ onClose, handleSubmit, collectionName }) =>
|
|||||||
.required('name is required')
|
.required('name is required')
|
||||||
}),
|
}),
|
||||||
onSubmit: (values) => {
|
onSubmit: (values) => {
|
||||||
console.log('here');
|
|
||||||
handleSubmit(values.collectionLocation);
|
handleSubmit(values.collectionLocation);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -50,7 +50,6 @@ export const appSlice = createSlice({
|
|||||||
},
|
},
|
||||||
updateCookies: (state, action) => {
|
updateCookies: (state, action) => {
|
||||||
state.cookies = action.payload;
|
state.cookies = action.payload;
|
||||||
console.log(state.cookies);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -93,7 +93,6 @@ export const saveRequest = (itemUid, collectionUid) => (dispatch, getState) => {
|
|||||||
export const saveCollectionRoot = (collectionUid) => (dispatch, getState) => {
|
export const saveCollectionRoot = (collectionUid) => (dispatch, getState) => {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
const collection = findCollectionByUid(state.collections.collections, collectionUid);
|
const collection = findCollectionByUid(state.collections.collections, collectionUid);
|
||||||
console.log(collection.root);
|
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
if (!collection) {
|
if (!collection) {
|
||||||
|
@ -985,7 +985,6 @@ export const collectionsSlice = createSlice({
|
|||||||
switch (action.payload.mode) {
|
switch (action.payload.mode) {
|
||||||
case 'awsv4':
|
case 'awsv4':
|
||||||
set(collection, 'root.request.auth.awsv4', action.payload.content);
|
set(collection, 'root.request.auth.awsv4', action.payload.content);
|
||||||
console.log('set auth awsv4', action.payload.content);
|
|
||||||
break;
|
break;
|
||||||
case 'bearer':
|
case 'bearer':
|
||||||
set(collection, 'root.request.auth.bearer', action.payload.content);
|
set(collection, 'root.request.auth.bearer', action.payload.content);
|
||||||
|
@ -43,8 +43,6 @@ export const getRequestFromCurlCommand = (curlCommand) => {
|
|||||||
body.xml = parsedBody;
|
body.xml = parsedBody;
|
||||||
} else if (contentType.includes('application/x-www-form-urlencoded')) {
|
} else if (contentType.includes('application/x-www-form-urlencoded')) {
|
||||||
body.mode = 'formUrlEncoded';
|
body.mode = 'formUrlEncoded';
|
||||||
console.log(parsedBody);
|
|
||||||
console.log(parseFormData(parsedBody));
|
|
||||||
body.formUrlEncoded = parseFormData(parsedBody);
|
body.formUrlEncoded = parseFormData(parsedBody);
|
||||||
} else if (contentType.includes('multipart/form-data')) {
|
} else if (contentType.includes('multipart/form-data')) {
|
||||||
body.mode = 'multipartForm';
|
body.mode = 'multipartForm';
|
||||||
|
Loading…
Reference in New Issue
Block a user