diff --git a/tietokanta.js b/tietokanta.js index 6f18ac6..781dd03 100644 --- a/tietokanta.js +++ b/tietokanta.js @@ -111,7 +111,7 @@ class Tietokanta { kumoa() { if (this.historia.length === 0) { - return []; + return [this, []]; } const {muutokset, idMuutos} = this.historia.pop(); this.seuraavaId -= idMuutos;