Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
109 stars 73 forks source link

fix(ProcessEditor): should re-render the diagram when local changes are deleted #12911

Closed framitdavid closed 1 month ago

framitdavid commented 1 month ago

Description

When deleting local changes, the diagram does not re-render which causes the diagram to display the wrong state. I fixed this by ensuring that React is re-rendering the diagram when bpmn diagram has changed.

Related Issue(s)

Verification

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.06%. Comparing base (5524972) to head (1a95289).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #12911 +/- ## ======================================= Coverage 91.06% 91.06% ======================================= Files 1394 1394 Lines 19737 19737 Branches 2389 2389 ======================================= Hits 17974 17974 Misses 1501 1501 Partials 262 262 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.