word/quiz: objects to access row array elements
[sheet.git] / word / memory.js
index a70ec06638ac20ce07a2ec60bc2aff3803617ff8..b539b2da4776d3831660a1d8cc4ddca82fd7111a 100644 (file)
@@ -69,7 +69,7 @@ class WordMemory extends WordQuiz {
                        let cols = Math.round(Math.sqrt(count) * aspect**.5);
                        count = cols * Math.ceil(count / cols);
                        this.form.style['grid-template-columns'] = `repeat(${cols}, 1fr)`;
-                       cards = this.words.splice(0, count>>1).map(row => row[2]);
+                       cards = this.words.splice(0, count>>1).map(row => row.imgid);
                        cards.push(...cards.map(val => -val));
                }
                else {