1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

max 5 entries on overview

This commit is contained in:
sveisvei 2016-12-05 18:25:36 +01:00
parent e88e3aeb88
commit c08dff8e84

View File

@ -154,7 +154,7 @@ function getHistoryFromToggle (state, toggleName) {
if (state.history.hasIn(['toggles', toggleName])) {
return state.history
.getIn(['toggles', toggleName])
.slice(0, 10)
.slice(0, 5)
.toJS()
.map(({ createdAt, createdBy, type }) => ({
createdAt: new Date(createdAt).toString(),