fix regroup items by tags

This commit is contained in:
m
2026-07-13 13:12:20 +02:00
parent ca2d5a54e1
commit e6b1c9203b
+1 -1
View File
@@ -55,7 +55,7 @@ function groupByTag(files: FileItem[]): GroupedFiles {
groups['Sans tag'].push(file); groups['Sans tag'].push(file);
} else { } else {
for (const tag of tags) { for (const tag of tags) {
const name = typeof tag === 'string' ? tag : tag.name; const name = typeof tag === 'string' ? tag : tag.tag_name;
if (!name) continue; if (!name) continue;
if (!groups[name]) groups[name] = []; if (!groups[name]) groups[name] = [];
groups[name].push(file); groups[name].push(file);