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

All: Fixed regression caused by commit 6164e2d8eb

This commit is contained in:
Laurent Cozic 2020-04-14 23:31:28 +00:00
parent 900b0f3eb2
commit 4163d9e474

View File

@ -137,7 +137,7 @@ class JoplinDatabase extends Database {
}
tableFieldNames(tableName) {
if (this.tableFieldNames_[tableName]) return this.tableFieldNames_[tableName];
if (this.tableFieldNames_[tableName]) return this.tableFieldNames_[tableName].slice();
const tf = this.tableFields(tableName);
const output = [];
@ -145,6 +145,7 @@ class JoplinDatabase extends Database {
output.push(tf[i].name);
}
this.tableFieldNames_[tableName] = output;
return output;
}