AlchemyCMS / alchemy_cms

Alchemy is the Open Source Rails CMS framework for the component based web that can be used as classic server side rendered or headless CMS.
https://www.alchemy-cms.com
BSD 3-Clause "New" or "Revised" License
817 stars 313 forks source link

Prevent Javascript error if the page will be unlocked #2942

Closed sascha-karnatz closed 1 week ago

sascha-karnatz commented 1 week ago

What is this pull request for?

Make an undefined check to the locked status label which is only available in page tree view. If user is closing the tab in page edit view (or any other view) it will result in a javascript error.

Checklist

codecov[bot] commented 1 week ago

Codecov Report

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

Project coverage is 95.96%. Comparing base (4774203) to head (bc1a1c1).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2942 +/- ## ======================================= Coverage 95.96% 95.96% ======================================= Files 232 232 Lines 6272 6272 ======================================= Hits 6019 6019 Misses 253 253 ```

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

alchemycms-bot commented 1 week ago

💚 All backports created successfully

Status Branch Result
✅ 7.1-stable
✅ 7.2-stable

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details