This endpoint now requires the data to have a top-level "word_groups"
property, so here it is.
}
async handle_submit() {
}
async handle_submit() {
- const response = await fetch_post_json(`judging/${this.props.prompt.id}`,
- this.state.word_groups);
+ const response = await fetch_post_json(
+ `judging/${this.props.prompt.id}`,{
+ word_groups: this.state.word_groups
+ }
+ );
if (response.status === 200) {
const result = await response.json();
if (response.status === 200) {
const result = await response.json();