mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-24 17:03:47 +01:00
Multipart request file - Fix init value and clear value (#2609)
This commit is contained in:
parent
81497d8397
commit
e60aaf2ea9
@ -42,7 +42,7 @@ const FilePickerEditor = ({ value, onChange, collection }) => {
|
||||
};
|
||||
|
||||
const clear = () => {
|
||||
onChange('');
|
||||
onChange([]);
|
||||
};
|
||||
|
||||
const renderButtonText = (filenames) => {
|
||||
|
@ -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: []
|
||||
})
|
||||
);
|
||||
};
|
||||
|
@ -717,7 +717,7 @@ export const collectionsSlice = createSlice({
|
||||
uid: uuid(),
|
||||
type: action.payload.type,
|
||||
name: '',
|
||||
value: '',
|
||||
value: action.payload.value,
|
||||
description: '',
|
||||
enabled: true
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user