From b7d8d5dae6c4a0a4f6f34caad2a38fe6f04d7d3a Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Tue, 5 Nov 2019 15:39:08 +0100 Subject: [PATCH] Remove unused random id for notices [MAILPOET-2450] --- assets/js/src/form_editor/store/reducers/addNotice.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/src/form_editor/store/reducers/addNotice.jsx b/assets/js/src/form_editor/store/reducers/addNotice.jsx index 4debb8ca68..e8950f3b64 100644 --- a/assets/js/src/form_editor/store/reducers/addNotice.jsx +++ b/assets/js/src/form_editor/store/reducers/addNotice.jsx @@ -1,7 +1,7 @@ export default (state, action) => { const notices = state.notices.filter((item) => item.id !== action.id); const notice = { - id: action.id ? action.id : Math.random().toString(36).substr(2, 9), + id: action.id, content: action.content, isDismissible: action.isDismissible, status: action.status,