Skip to content

Commit 2228a86

Browse files
committed
fix issue with collection (#70)
1 parent 97cd38f commit 2228a86

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/component.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ function _Array(conf) {
405405
var oldValue = null;
406406

407407
if ($history.isEnabled()) {
408-
oldValue = JSON.stringify(oldValue);
408+
oldValue = JSON.stringify(arrDb);
409409
}
410410

411411
arrDb.sort(funct);
@@ -447,7 +447,7 @@ function _Array(conf) {
447447
var oldValue = null;
448448

449449
if ($history.isEnabled()) {
450-
oldValue = JSON.stringify(oldValue);
450+
oldValue = JSON.stringify(arrDb);
451451
}
452452
arrDb.reverse();
453453

@@ -492,7 +492,7 @@ function _Array(conf) {
492492
var data = null;
493493

494494
if ($history.isEnabled()) {
495-
oldValue = JSON.stringify(oldValue);
495+
oldValue = JSON.stringify(arrDb);
496496
}
497497

498498
if (typeof val !== 'undefined') {

0 commit comments

Comments
 (0)