From 9dd0ab6d60e81d39f1a66f4a53fd3a19bd51ffe9 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Thu, 11 Jun 2020 16:00:23 -0700 Subject: [PATCH] empathy: Track change in the server's implementation of /judging This endpoint now requires the data to have a top-level "word_groups" property, so here it is. --- empathy/empathy.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/empathy/empathy.jsx b/empathy/empathy.jsx index 60540c0..8c7b917 100644 --- a/empathy/empathy.jsx +++ b/empathy/empathy.jsx @@ -332,8 +332,11 @@ class Ambiguities extends React.PureComponent { } 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(); -- 2.43.0