fix regroup items by tags
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user