mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
fix: broken flag history on flag update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user