mirror of
https://github.com/frappe/books.git
synced 2024-12-23 03:19:01 +00:00
Merge pull request #11 from achillesrasquinha/8
[MINOR] Return data instead of d
This commit is contained in:
commit
bd2a7dcb6f
@ -66,7 +66,7 @@ module.exports = class BaseDocument {
|
|||||||
if (data.prototype instanceof Document) {
|
if (data.prototype instanceof Document) {
|
||||||
return data;
|
return data;
|
||||||
} else {
|
} else {
|
||||||
return new Document(d);
|
return new Document(data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user