fix(client/import_preview): off by one error when displaying status

This commit is contained in:
Elian Doran
2026-02-07 23:22:47 +02:00
parent 6dcef0b1e5
commit 537b468714

View File

@@ -159,7 +159,7 @@ function SinglePreview({ preview }: { preview: ImportPreviewResponse }) {
</div>
<div className="dangerous-categories">
{categories.length > 1
{categories.length > 0
? categories.map(dangerousCategory => {
const mapping = DANGEROUS_CATEGORIES_MAPPINGS[dangerousCategory];
return (