fix: regression on allowing user to delete built-in pages

pull/11196/head
Gabriel Horner 2024-04-03 13:55:20 -04:00
parent 438763d530
commit fbe84d3db6
1 changed files with 3 additions and 1 deletions

View File

@ -101,7 +101,9 @@
:options {:on-click #(page-handler/copy-page-url page-original-name)}})
(when-not (or contents?
config/publishing?)
config/publishing?
(and db-based?
(:logseq.property/built-in? page)))
{:title (t :page/delete)
:options {:on-click #(delete-page-confirm! page-name)}})