From 55afe54d25f3c1d9a38a71a9379f0307fc07397e Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 7 Nov 2022 18:03:53 -0800 Subject: [PATCH] Fix feeds.set_parent api call. --- frontends/bringrss_flask/static/js/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontends/bringrss_flask/static/js/api.js b/frontends/bringrss_flask/static/js/api.js index 07ea2c2..4fb0a42 100644 --- a/frontends/bringrss_flask/static/js/api.js +++ b/frontends/bringrss_flask/static/js/api.js @@ -102,13 +102,14 @@ function set_isolate_guids(feed_id, isolate_guids, callback) api.feeds.set_parent = function set_parent(feed_id, parent_id, ui_order_rank, callback) { + data = {"parent_id": parent_id}; if (ui_order_rank !== null) { data["ui_order_rank"] = ui_order_rank; } return http.post({ url: `/feed/${feed_id}/set_parent`, - data: {"parent_id": parent_id}, + data: data, callback: callback, }); }