Skip to content

Commit 7dd4304

Browse files
major1xumraible
authored andcommitted
GroupEdit.js : line 60 (#11)
add this.state. before csrfToken
1 parent e838941 commit 7dd4304

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/GroupEdit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class GroupEdit extends Component {
5757
await fetch('/api/group', {
5858
method: (item.id) ? 'PUT' : 'POST',
5959
headers: {
60-
'X-XSRF-TOKEN': csrfToken,
60+
'X-XSRF-TOKEN': this.state.csrfToken,
6161
'Accept': 'application/json',
6262
'Content-Type': 'application/json'
6363
},
@@ -118,4 +118,4 @@ class GroupEdit extends Component {
118118
}
119119
}
120120

121-
export default withCookies(withRouter(GroupEdit));
121+
export default withCookies(withRouter(GroupEdit));

0 commit comments

Comments
 (0)