fix: broken flag history on flag update

v1.18.x
Julian Lam 2 years ago committed by Barış Soner Uşaklı
parent 175d53421b
commit 98be042012

@ -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);

Loading…
Cancel
Save