fix: hide used_by when only one source is present

used_by (share names) shown only when path has both samba and nfs
to avoid redundancy with the source chips.
This commit is contained in:
2026-07-06 00:45:28 -04:00
parent 508890a232
commit 5c9ece6891
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ export default function Dashboard() {
{SOURCE_LABELS[s] ?? s}
</span>
))}
{d.used_by && d.used_by.length > 0 && (
{d.used_by && d.used_by.length > 0 && d.sources.length > 1 && (
<span className="text-xs text-slate-500">{d.used_by.join(", ")}</span>
)}
</div>