From 780b4d64ffc2338fb5e0f813feddc8747f5ae0eb Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Thu, 27 Jun 2019 17:31:12 +0800 Subject: [PATCH] test_sets --- public/react/src/context/TPIContextProvider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/react/src/context/TPIContextProvider.js b/public/react/src/context/TPIContextProvider.js index c723bacf4..51769b605 100644 --- a/public/react/src/context/TPIContextProvider.js +++ b/public/react/src/context/TPIContextProvider.js @@ -731,8 +731,8 @@ pop_box_new(htmlvalue, 480, 182); // output_sets let { output_sets } = this.state; output_sets = Object.assign({}, output_sets); - const test_sets_array = JSON.parse("[" + response.data.test_sets + "]"); - output_sets.test_sets_array = test_sets_array; + // const test_sets_array = JSON.parse("[" + response.data.test_sets + "]"); + output_sets.test_sets_array = response.data.test_sets; this.setState({ output_sets: output_sets, grade: this.state.grade + deltaScore,