2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

fix: Handle undefined filters

This commit is contained in:
Faris Ansari 2019-10-19 20:03:23 +05:30
parent 6c6a49f89a
commit 0b015f4d90

View File

@ -208,7 +208,7 @@ module.exports = class sqliteDatabase extends Database {
fields = [fields];
}
if (meta.filters) {
Object.assign(filters, meta.filters);
filters = Object.assign({}, filters, meta.filters);
}
return new Promise((resolve, reject) => {