From bbbcda3d1835b48ef7f14dd1fd414029123447aa Mon Sep 17 00:00:00 2001 From: gca-axelor <117281520+gca-axelor@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:27:48 +0100 Subject: [PATCH] fix: improve session refresh on input with unique mode (#804) * RM#87049 --- changelogs/unreleased/87049.json | 5 +++++ .../core/src/sessions/components/inputs/SessionInputs.js | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 changelogs/unreleased/87049.json diff --git a/changelogs/unreleased/87049.json b/changelogs/unreleased/87049.json new file mode 100644 index 0000000000..e382c37aa3 --- /dev/null +++ b/changelogs/unreleased/87049.json @@ -0,0 +1,5 @@ +{ + "title": "SessionInputs: manage session refresh in unique mode", + "type": "fix", + "packages": "core" +} diff --git a/packages/core/src/sessions/components/inputs/SessionInputs.js b/packages/core/src/sessions/components/inputs/SessionInputs.js index 1c6a6548f7..4f28e8a16e 100644 --- a/packages/core/src/sessions/components/inputs/SessionInputs.js +++ b/packages/core/src/sessions/components/inputs/SessionInputs.js @@ -100,12 +100,7 @@ const SessionInputs = ({ }); useEffect(() => { - if ( - session != null && - !loading && - mode !== MODE.creation && - mode !== MODE.unique - ) { + if (session != null && !loading && mode !== MODE.creation) { setForm({...session}); } }, [loading, mode, session]);