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

bugfix: CreatedAt set when creating new toggle

closes #94
This commit is contained in:
Ivar Conradi Østhus 2018-02-04 21:32:26 +01:00
parent 9526299b75
commit 58dc5724b9
2 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ The latest version of this document is always available in
## [Unreleased]
- Move metrics poller to seperate class
- Bugfix: CreatedAt set when creating new toggle
## [3.0.0-alpha.6]
- Bugfix: actions should always throw errors

View File

@ -21,6 +21,8 @@ const prepare = (methods, dispatch) => {
methods.onSubmit = input => e => {
e.preventDefault();
input.createdAt = new Date();
if (Array.isArray(input.strategies)) {
input.strategies.forEach(s => {
delete s.id;