From 23272d18ef2eccd1a451bbd2aefb1f067b30962b Mon Sep 17 00:00:00 2001
From: "Adam T. Carpenter" <atc@53hor.net>
Date: Fri, 13 Nov 2020 10:05:48 -0500
Subject: basic sorting functional; swapped indexes for ids in edit list

---
 iridescence/src/components/admin/ProductEditList.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'iridescence/src/components/admin/ProductEditList.vue')

diff --git a/iridescence/src/components/admin/ProductEditList.vue b/iridescence/src/components/admin/ProductEditList.vue
index 0880d7c..91c0929 100644
--- a/iridescence/src/components/admin/ProductEditList.vue
+++ b/iridescence/src/components/admin/ProductEditList.vue
@@ -3,10 +3,10 @@
     <div class="columns is-multiline is-variable is-desktop">
       <div
         class="column is-one-third-desktop"
-        v-for="(product, index) in products"
-        :key="index"
+        v-for="product in products"
+        :key="product.id"
       >
-        <ProductEditCard v-bind:index="index"></ProductEditCard>
+        <ProductEditCard v-bind:oldid="product.id"></ProductEditCard>
       </div>
     </div>
   </div>
-- 
cgit v1.2.3

