summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-11-12 13:06:13 -0500
committerKyle Gunger <kgunger12@gmail.com>2022-11-12 13:06:13 -0500
commitbdebfb3d7e4bafe48f7e54a0e9fcf6e6b6b93a6c (patch)
tree19f0fb1cf0c46096a53ddb50b5ff1282469d94d9 /scripts
parent9077d7a40f619f42ee54a7abc9a5fb891b013baf (diff)
Fix ID swapping
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gui/table.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gui/table.js b/scripts/gui/table.js
index f19cfca..ea7254d 100644
--- a/scripts/gui/table.js
+++ b/scripts/gui/table.js
@@ -147,6 +147,7 @@ class Table{
}
this.cards[data.id] = this.cards[data.card];
delete this.cards[data.card];
+ this.cards[data.id].id = data.id;
this.cards[data.id].generateElements(data.data);
}