Fix showing empty destination source group header

This commit is contained in:
schroda
2026-05-16 01:47:18 +02:00
parent 88d952c84b
commit 17a08fc131
2 changed files with 7 additions and 2 deletions

View File

@@ -177,7 +177,11 @@ export const MigrationSourceList = ({
groupCounts={groupCounts}
computeItemKey={computeItemKey}
groupContent={(index) => {
const [group] = groupedSourcesBySelectionState[index];
const [group, sourcesOfGroup] = groupedSourcesBySelectionState[index];
if (!sourcesOfGroup.length) {
return null;
}
return (
<StyledGroupHeader
@@ -193,7 +197,7 @@ export const MigrationSourceList = ({
{group ? t`Selected` : t`Available`}
</Typography>
{group && !!selectedSources.length && (
{group && (
<Typography variant="body2" color="text.secondary">
{t`Drag to prioritize`}
</Typography>