diff --git a/src/index.ts b/src/index.ts index f1c0f94..d7c6163 100644 --- a/src/index.ts +++ b/src/index.ts @@ -192,9 +192,7 @@ export class BufferedChangeset implements IChangeset { } get error() { - let obj: Errors = this[ERRORS]; - // TODO: whyy? - return JSON.parse(JSON.stringify(obj)); + return this[ERRORS]; } get data() {