mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-28 19:03:15 +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 = () => {
|
const clear = () => {
|
||||||
onChange('');
|
onChange([]);
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderButtonText = (filenames) => {
|
const renderButtonText = (filenames) => {
|
||||||
|
@ -24,7 +24,8 @@ const MultipartFormParams = ({ item, collection }) => {
|
|||||||
addMultipartFormParam({
|
addMultipartFormParam({
|
||||||
itemUid: item.uid,
|
itemUid: item.uid,
|
||||||
collectionUid: collection.uid,
|
collectionUid: collection.uid,
|
||||||
type: 'text'
|
type: 'text',
|
||||||
|
value: ''
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@ -34,7 +35,8 @@ const MultipartFormParams = ({ item, collection }) => {
|
|||||||
addMultipartFormParam({
|
addMultipartFormParam({
|
||||||
itemUid: item.uid,
|
itemUid: item.uid,
|
||||||
collectionUid: collection.uid,
|
collectionUid: collection.uid,
|
||||||
type: 'file'
|
type: 'file',
|
||||||
|
value: []
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -717,7 +717,7 @@ export const collectionsSlice = createSlice({
|
|||||||
uid: uuid(),
|
uid: uuid(),
|
||||||
type: action.payload.type,
|
type: action.payload.type,
|
||||||
name: '',
|
name: '',
|
||||||
value: '',
|
value: action.payload.value,
|
||||||
description: '',
|
description: '',
|
||||||
enabled: true
|
enabled: true
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user