From 0e1344222c94cb4981581e715a2a14b5426a8548 Mon Sep 17 00:00:00 2001 From: Mike Goodwin Date: Thu, 9 May 2019 16:17:26 -0400 Subject: [PATCH] Fix bug where >2 links causes duplicates on page re-rendering - Prior to this fix, any task object that had greater-than 2 links would duplicate n-1 of those links every time the page rendered. I made an assumption that it had something to do with Preact duplicating based on passing the entire `link` object to `key=` and it seems to work simply by removing the `key=` attribute altogether. - Also removed the unused `i` parameter --- src/components/task.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/task.js b/src/components/task.js index 2073ffd..c74bbdd 100644 --- a/src/components/task.js +++ b/src/components/task.js @@ -84,9 +84,9 @@ class Task extends Component { )} {task.links && (