From 98be04201225c91ab7c3e2d65f88178c8063a4c0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 23 Sep 2022 13:10:14 -0400 Subject: [PATCH] fix: broken flag history on flag update --- public/src/client/flags/detail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/flags/detail.js b/public/src/client/flags/detail.js index 644b7a1c35..fdc74cc103 100644 --- a/public/src/client/flags/detail.js +++ b/public/src/client/flags/detail.js @@ -26,7 +26,7 @@ define('forum/flags/detail', [ return memo; }, {}); - api.put(`/flags/${ajaxify.data.flagId}`, data).then((history) => { + api.put(`/flags/${ajaxify.data.flagId}`, data).then(({ history }) => { alerts.success('[[flags:updated]]'); Detail.reloadHistory(history); }).catch(alerts.error);