fix: add is defined check

This commit is contained in:
Ryan Prather 2024-05-15 22:35:59 -04:00
parent b1e22c7ee5
commit f19c6c2952

View File

@ -29,7 +29,7 @@
<li><a href='#' onclick='openNote()'>Open Note</a></li>
<li><a href="#" onclick="saveNote()">Save Note</a></li>
<li><a href='#' onclick='discardNote()'>Delete Note</a></li>
{% if isAdmin %}
{% if isAdmin is defined and isAdmin %}
<li><a href='/index.php/reference-editor'>Reference Editor</a></li>
{% endif %}
<li><a href='#' onclick="openRef()">Open Reference</a></li>
@ -51,7 +51,7 @@
<div class="mini-posts">
{% for n in app.user.notes %}
<article>
<a href="#">{{ n.title }}</a>
<a href="#" onclick="retrieveNote('{{ n.id }}');openNote();">{{ n.title }}</a>
<p>{{ n.passage }}</p>
</article>
{% endfor %}