mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
Don't send requests twice (Fixes #1307)
This commit is contained in:
parent
efdb30a8a5
commit
5adf101d83
@ -37,7 +37,7 @@ type Props = {
|
||||
type State = {
|
||||
currentInterval: number | null,
|
||||
currentTimeout: number | null,
|
||||
downloadPath: string | null
|
||||
downloadPath: string | null,
|
||||
};
|
||||
|
||||
@autobind
|
||||
@ -284,11 +284,11 @@ class RequestUrlBar extends React.PureComponent<Props, State> {
|
||||
className="urlbar__send-btn"
|
||||
onContextMenu={this._handleMetaClickSend}
|
||||
onClick={this._handleClickSend}
|
||||
type="submit">
|
||||
type="button">
|
||||
{downloadPath ? 'Download' : 'Send'}
|
||||
</DropdownButton>
|
||||
<DropdownDivider>Basic</DropdownDivider>
|
||||
<DropdownItem type="submit">
|
||||
<DropdownItem onClick={this._handleClickSend}>
|
||||
<i className="fa fa-arrow-circle-o-right" /> Send Now
|
||||
<DropdownHint hotkey={hotkeys.SEND_REQUEST} />
|
||||
</DropdownItem>
|
||||
|
Loading…
Reference in New Issue
Block a user