diff options
Diffstat (limited to 'iridescence/src/components/admin/ProductEditCard.vue')
-rw-r--r-- | iridescence/src/components/admin/ProductEditCard.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/iridescence/src/components/admin/ProductEditCard.vue b/iridescence/src/components/admin/ProductEditCard.vue index aced39c..2927b42 100644 --- a/iridescence/src/components/admin/ProductEditCard.vue +++ b/iridescence/src/components/admin/ProductEditCard.vue @@ -126,7 +126,7 @@ export default { }; }, props: { - index: { + oldid: { type: Number, required: true } @@ -148,7 +148,7 @@ export default { }, computed: { old: function() { - return this.$store.getters.products[this.index] || {}; + return this.$store.getters.products.find(p => p.id == this.oldid) || {}; }, id: function() { return this.diff.id || this.old.id; |