diff --git a/treenode/static/treenode/js/treenode.js b/treenode/static/treenode/js/treenode.js
index 52c522f..76011cc 100644
--- a/treenode/static/treenode/js/treenode.js
+++ b/treenode/static/treenode/js/treenode.js
@@ -156,6 +156,10 @@
// create accordion button and move level tabs before it
var rowAnchor = scope.closest('a');
+ // fix when `list_display_links = None` there is no encapsulating tag
+ if (!rowAnchor.length) {
+ rowAnchor = scope;
+ }
var rowToggleButtonHTML = '';
rowToggleButtonHTML += '';