From e0a64f2e1dcf9effdb9e0d6aea0eca7124bafadb Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 23 Dec 2023 01:32:06 +0100 Subject: WIP: Global duplicate search --- public/gallery.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'public/gallery.js') diff --git a/public/gallery.js b/public/gallery.js index 009eb1e..19d63bb 100644 --- a/public/gallery.js +++ b/public/gallery.js @@ -336,12 +336,9 @@ let DuplicatesList = { if (DuplicatesModel.entries.length == 0) return "No duplicates" - return m('.duplicates', {}, DuplicatesModel.entries.map(entry => - m('.row', [ - m(DuplicatesThumbnail, {info: entry.main}), - entry.similar.map(entry => - m(DuplicatesThumbnail, {info: entry})), - ]), + return m('.duplicates', {}, DuplicatesModel.entries.map(group => + m('.row', group.map(entry => + m(DuplicatesThumbnail, {info: entry}))), )) }, } -- cgit v1.2.3-70-g09d2