1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Api: Fixes #3539: Fixes nested tag API to handle calls with no 'fields' query key

This commit is contained in:
Vaidotas Šimkus 2020-07-22 10:38:49 +01:00 committed by GitHub
parent 89d0575ccd
commit 17e140ba56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -285,7 +285,7 @@ class Api {
} }
const checkAndRemoveFullTitleField = function(request) { const checkAndRemoveFullTitleField = function(request) {
const fields = this.fields_(request); const fields = this.fields_(request, []);
let hasFullTitleField = false; let hasFullTitleField = false;
for (let i = 0; i < fields.length; i++) { for (let i = 0; i < fields.length; i++) {
if (fields[i] === 'full_title') { if (fields[i] === 'full_title') {