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,