Skip to content

Commit

Permalink
Merge pull request #2946 from AlchemyCMS/backport/7.2-stable/pr-2942
Browse files Browse the repository at this point in the history
[7.2-stable] Prevent Javascript error if the page will be unlocked
  • Loading branch information
tvdeyen authored Jun 27, 2024
2 parents 325411a + 04598c6 commit faa3cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/pages/unlock.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
}
locked_page_icon.outerHTML = locked_page_icon_content
}
document.querySelector("#page_<%= @page.id -%> .page_status.locked").remove()
document.querySelector("#page_<%= @page.id -%> .page_status.locked")?.remove()
Alchemy.growl('<%= flash[:notice] -%>')
})()

0 comments on commit faa3cfc

Please sign in to comment.