Skip to content

Commit

Permalink
[4437] Fix DialogContextProvider missing
Browse files Browse the repository at this point in the history
Bug: #4437
Signed-off-by: Michaël Charfadi <[email protected]>
  • Loading branch information
mcharfadi authored and frouene committed Jan 17, 2025
1 parent 13adadd commit d6d6413
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ See https://github.com/mui/material-ui/issues/15618[this link] for additional de
Before this contribution, migration participants were executed if the project being opened was a studio.
Now they are executed for some data if the data was coming from a studio too.
- https://github.com/eclipse-sirius/sirius-web/issues/4422[#4422] [diagram] Prevent application crash when an edge path is malformed during node moves
- https://github.com/eclipse-sirius/sirius-web/issues/4437[#4437] [diagram] Fix selection dialog not opening


=== New Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import LinearProgress from '@mui/material/LinearProgress';
import Typography from '@mui/material/Typography';
import { memo, useEffect, useState } from 'react';
import { DiagramContext } from '../contexts/DiagramContext';
import { DialogContextProvider } from '../dialog/DialogContext';
import {
GQLDiagramEventPayload,
GQLDiagramRefreshedEventPayload,
Expand Down Expand Up @@ -67,15 +68,17 @@ export const DiagramSubscriptionProvider = memo(
payload: payload,
readOnly,
}}>
<div
style={{ display: 'inline-block', position: 'relative' }}
data-representation-kind="diagram"
data-representation-label={state.diagramRefreshedEventPayload.diagram.metadata.label}>
<DiagramRenderer
key={state.diagramRefreshedEventPayload.diagram.id}
diagramRefreshedEventPayload={state.diagramRefreshedEventPayload}
/>
</div>
<DialogContextProvider>
<div
style={{ display: 'inline-block', position: 'relative' }}
data-representation-kind="diagram"
data-representation-label={state.diagramRefreshedEventPayload.diagram.metadata.label}>
<DiagramRenderer
key={state.diagramRefreshedEventPayload.diagram.id}
diagramRefreshedEventPayload={state.diagramRefreshedEventPayload}
/>
</div>
</DialogContextProvider>
</DiagramContext.Provider>
</StoreContextProvider>
);
Expand Down

0 comments on commit d6d6413

Please sign in to comment.