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

pull/3549/head
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
1 changed files with 1 additions and 1 deletions

View File

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