diff --git a/packages/bruno-app/src/components/FilePickerEditor/index.js b/packages/bruno-app/src/components/FilePickerEditor/index.js index a7b67264d..797771bbb 100644 --- a/packages/bruno-app/src/components/FilePickerEditor/index.js +++ b/packages/bruno-app/src/components/FilePickerEditor/index.js @@ -42,7 +42,7 @@ const FilePickerEditor = ({ value, onChange, collection }) => { }; const clear = () => { - onChange(''); + onChange([]); }; const renderButtonText = (filenames) => { diff --git a/packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js b/packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js index f99987341..0d57d97ea 100644 --- a/packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js +++ b/packages/bruno-app/src/components/RequestPane/MultipartFormParams/index.js @@ -24,7 +24,8 @@ const MultipartFormParams = ({ item, collection }) => { addMultipartFormParam({ itemUid: item.uid, collectionUid: collection.uid, - type: 'text' + type: 'text', + value: '' }) ); }; @@ -34,7 +35,8 @@ const MultipartFormParams = ({ item, collection }) => { addMultipartFormParam({ itemUid: item.uid, collectionUid: collection.uid, - type: 'file' + type: 'file', + value: [] }) ); }; diff --git a/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js b/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js index 82cfcad35..289c36c53 100644 --- a/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js +++ b/packages/bruno-app/src/providers/ReduxStore/slices/collections/index.js @@ -717,7 +717,7 @@ export const collectionsSlice = createSlice({ uid: uuid(), type: action.payload.type, name: '', - value: '', + value: action.payload.value, description: '', enabled: true });