hedgedoc/frontend
Erik Michelson f16b3c0fe6 fix(redux): avoid state mutation in history redux
When updating the data of a note in the redux, the old state element gets manipulated and will be dispatched again into the state.
Redux is not optimized for external state-mutations and has some weird side-effects in that case and sometimes throws an error.
This commit fixes the problem by using a clone of the entry.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
2023-01-09 19:52:21 +01:00
..
.netlify
cypress
docker chore(deps): update node.js to b3f383c 2023-01-07 07:33:19 +00:00
global-styles
locales
netlify
public
src fix(redux): avoid state mutation in history redux 2023-01-09 19:52:21 +01:00
.dockerignore
.dockerignore.license
.editorconfig
.env.development
.env.development.license
.env.production
.env.production.license
.env.test
.env.test.license
.eslintrc.js
.gitignore
.nvmrc
.nvmrc.license
.prettierignore
.prettierignore.license
.prettierrc.json
.prettierrc.json.license
CHANGELOG.md
CONTRIBUTING.md
cypress.config.ts
jest.config.ts
netlify.toml
next-env.d.ts
next-env.d.ts.license
next.config.js
package.json fix(deps): update dependency i18next to v22.4.9 2023-01-08 20:08:23 +01:00
package.json.license
renovate.json
renovate.json.license
tsconfig.json
tsconfig.json.license