Skip to content

Commit

Permalink
[2058] Fix default icon for List widget candidates
Browse files Browse the repository at this point in the history
Bug: #2058
Signed-off-by: Axel RICHARD <axel.richard@obeo.fr>
  • Loading branch information
AxelRICHARD authored and pcdavid committed Jun 14, 2023
1 parent 8ac1fc1 commit ab10622
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.adoc
Expand Up @@ -14,6 +14,8 @@

=== Bug fixes

- https://github.com/eclipse-sirius/sirius-components/issues/2058[#2058] [view] Fix an issue where the default icon for List widget candidates was missing when the candidates were not EObjects.

=== New Features

=== Improvements
Expand Down
Expand Up @@ -794,7 +794,7 @@ private String getDescriptionId(EObject description) {

private String getListItemImageURL(VariableManager variablemanager) {
// @formatter:off
return variablemanager.get(ListComponent.CANDIDATE_VARIABLE, EObject.class)
return variablemanager.get(ListComponent.CANDIDATE_VARIABLE, Object.class)
.map(this.objectService::getImagePath)
.orElse("");
// @formatter:on
Expand Down

0 comments on commit ab10622

Please sign in to comment.