mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-21 23:43:15 +01:00
fix: clear draft on request save
This commit is contained in:
parent
2e4051b022
commit
f61f42e604
@ -34,7 +34,8 @@ import {
|
||||
resetRunResults,
|
||||
responseReceived,
|
||||
updateLastAction,
|
||||
setCollectionSecurityConfig
|
||||
setCollectionSecurityConfig,
|
||||
saveRequest as _saveRequest
|
||||
} from './index';
|
||||
|
||||
import { each } from 'lodash';
|
||||
@ -83,6 +84,7 @@ export const saveRequest = (itemUid, collectionUid, saveSilently) => (dispatch,
|
||||
if (!saveSilently) {
|
||||
toast.success('Request saved successfully');
|
||||
}
|
||||
dispatch(_saveRequest({ collectionUid, itemUid }));
|
||||
})
|
||||
.then(resolve)
|
||||
.catch((err) => {
|
||||
|
Loading…
Reference in New Issue
Block a user