Skip to content

Commit b70d6db

Browse files
committed
Fix request creation bug
1 parent c18d85b commit b70d6db

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "insomnia",
4-
"version": "5.7.9",
4+
"version": "5.7.10",
55
"productName": "Insomnia",
66
"longName": "Insomnia REST Client",
77
"description": "Debug APIs like a human, not a robot",

app/ui/components/modals/request-create-modal.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class RequestCreateModal extends PureComponent {
2828

2929
_setInputRef (n) {
3030
this._input = n;
31+
if (this._input) {
32+
this._input.value = 'My Request';
33+
}
3134
}
3235

3336
async _handleSubmit (e) {
@@ -78,7 +81,6 @@ class RequestCreateModal extends PureComponent {
7881
show ({parentId, onComplete}) {
7982
this.modal.show();
8083

81-
this._input.value = 'My Request';
8284
this.setState({
8385
parentId,
8486
selectedContentType: null,

0 commit comments

Comments
 (0)