From bd27a910e16c78b75df08ce0e43586259b70a517 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 21 May 2020 22:20:50 -0700 Subject: [PATCH] Fix bugs introduced by new http response["data"] format. --- frontends/ycdl_flask/templates/channel.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontends/ycdl_flask/templates/channel.html b/frontends/ycdl_flask/templates/channel.html index 464a317..4962a88 100644 --- a/frontends/ycdl_flask/templates/channel.html +++ b/frontends/ycdl_flask/templates/channel.html @@ -467,11 +467,11 @@ function give_action_buttons(video_card_div) function receive_action_response(response) { - var video_ids = response['video_ids']; + var video_ids = response["data"]["video_ids"]; for (var index = 0; index < video_ids.length; index += 1) { var video_id = video_ids[index]; - var state = response['state']; + var state = response["data"]["state"]; var card = document.getElementById("video_card_" + video_id); {% for statename in all_states %} card.classList.remove("video_card_{{statename}}");