Skip to content

Commit 339993e

Browse files
committed
fix delete button
1 parent 6b12bf1 commit 339993e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/views/pages/form.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
<div class="writing-buttons">
6666
{% include 'components/button.twig' with {label: 'Save changes', name: 'js-submit-save', icon: 'check'} %}
67-
{% if page._id is not empty %}
67+
{% if toString(page._id) is not empty %}
6868
{% include 'components/button.twig' with {label: 'Delete doc', name: 'js-submit-remove', icon: 'trash', style: 'warning'} %}
6969
{% endif %}
7070
</div>

0 commit comments

Comments
 (0)