From 7527b3678fa050a0971056388a6e10b989bd8774 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 8 Jan 2021 13:38:30 -0800 Subject: [PATCH] Fix reference to response.json_ok -> response.meta.json_ok. --- frontends/etiquette_flask/static/js/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/static/js/api.js b/frontends/etiquette_flask/static/js/api.js index 83fed7f..9497a1e 100644 --- a/frontends/etiquette_flask/static/js/api.js +++ b/frontends/etiquette_flask/static/js/api.js @@ -103,7 +103,7 @@ function remove_photos(album_id, photo_ids, callback) api.albums.callback_follow = function callback_follow(response) { - if ((response.meta.status !== 200) || (! response.json_ok) || (! response.data.id)) + if ((response.meta.status !== 200) || (! response.meta.json_ok) || (! response.data.id)) { alert(JSON.stringify(response)); return;