Skip to content

Commit

Permalink
fix: improve session refresh on input with unique mode (#804)
Browse files Browse the repository at this point in the history
* RM#87049
  • Loading branch information
gca-axelor authored Nov 22, 2024
1 parent b2ca1a9 commit 0f566db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions changelogs/unreleased/87049.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"title": "SessionInputs: manage session refresh in unique mode",
"type": "fix",
"packages": "core"
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,7 @@ const SessionInputs = ({
const [isKeyboardOpen, setIsKeyboardOpen] = useState(false);

useEffect(() => {
if (
session != null &&
!loading &&
mode !== MODE.creation &&
mode !== MODE.unique
) {
if (session != null && !loading && mode !== MODE.creation) {
setForm({...session});
}
}, [loading, mode, session]);
Expand Down

0 comments on commit 0f566db

Please sign in to comment.