From 98e3e53d6c5b58e8b66d49256e2705a7a5a409dd Mon Sep 17 00:00:00 2001 From: Pierre-Charles David Date: Fri, 13 Dec 2024 17:36:10 +0100 Subject: [PATCH] [4312] Update the Details view when its input is deselected Bug: https://github.com/eclipse-sirius/sirius-web/issues/4312 Signed-off-by: Pierre-Charles David --- CHANGELOG.adoc | 1 + .../src/views/edit-project/workbench-views/DetailsView.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.adoc b/CHANGELOG.adoc index 40bb582ebe..a9c490132d 100644 --- a/CHANGELOG.adoc +++ b/CHANGELOG.adoc @@ -59,6 +59,7 @@ This provider is in charge of getting the icon list of the representation. This was first fixed in 2022.3.0 but broken in 2024.3.0; it is now fixed again. - https://github.com/eclipse-sirius/sirius-web/issues/4280[#4280] [diagram] Fix direct edit with F2 when the palette is opened - https://github.com/eclipse-sirius/sirius-web/issues/4302[#4302] [diagram] Fix edges label flashing +- https://github.com/eclipse-sirius/sirius-web/issues/4312[#4312] [sirius-web] The _Details_ view dit not react to its input is deselected, showing potentially stale information === New Features diff --git a/packages/sirius-web/frontend/sirius-web-application/src/views/edit-project/workbench-views/DetailsView.tsx b/packages/sirius-web/frontend/sirius-web-application/src/views/edit-project/workbench-views/DetailsView.tsx index 3a6086c437..23a6351f86 100644 --- a/packages/sirius-web/frontend/sirius-web-application/src/views/edit-project/workbench-views/DetailsView.tsx +++ b/packages/sirius-web/frontend/sirius-web-application/src/views/edit-project/workbench-views/DetailsView.tsx @@ -68,7 +68,7 @@ export const DetailsView = ({ editingContextId, readOnly }: WorkbenchViewCompone const { classes } = useDetailsViewStyles(); - if (!state.form || complete) { + if (!state.form || complete || skip) { return (
No object selected