From 986550887ba2afc0b40d322ebc0e4f3644fa9cdf Mon Sep 17 00:00:00 2001 From: sveisvei Date: Tue, 13 Dec 2016 20:45:56 +0100 Subject: [PATCH] go to new toggle when created --- frontend/src/component/feature/form-add-container.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/component/feature/form-add-container.jsx b/frontend/src/component/feature/form-add-container.jsx index fa7f567c8b..de88d3acb2 100644 --- a/frontend/src/component/feature/form-add-container.jsx +++ b/frontend/src/component/feature/form-add-container.jsx @@ -12,7 +12,7 @@ const prepare = (methods, dispatch) => { e.preventDefault(); createFeatureToggles(input)(dispatch) .then(() => methods.clear()) - .then(() => hashHistory.push('/features')); + .then(() => hashHistory.push(`/features/edit/${input.name}`)); } );