Template rendering fix for inventree.js

This commit is contained in:
Oliver 2021-07-27 17:22:44 +10:00
parent a93d96de58
commit c08cb43c39

View File

@ -91,7 +91,11 @@ function inventreeDocReady() {
url: '/api/part/',
data: {
search: request.term,
{% if request.user %}
limit: {% settings_value 'SEARCH_PREVIEW_RESULTS' user=request.user %},
{% else %}
limit: 25
{% endif %}
offset: 0
},
success: function (data) {