Skip to content

Commit 0bf37ec

Browse files
authored
Merge pull request #20458 from jmchilton/paired_unpaired_fix_1
[25.0] Bug fix: paired_or_unpaired also endswith paired.
2 parents 514c169 + 3376787 commit 0bf37ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/Collections/common/usePairingSummary.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export function usePairingSummary<T extends HasName>(props: PropsWithCollectionT
1717
const numMatchedText = `Auto-matched ${summary.pairs.length} pair(s) of datasets from target datasets.`;
1818
const numUnmatched = summary.unpaired.length;
1919
let numUnmatchedText = "";
20-
if (numUnmatched > 0 && props.collectionType.endsWith("paired")) {
20+
if (numUnmatched > 0 && props.collectionType.endsWith(":paired")) {
2121
numUnmatchedText = `${numUnmatched} dataset(s) were not paired and will not be included in the resulting list of pairs.`;
2222
} else if (numUnmatched > 0) {
2323
numUnmatchedText = `${numUnmatched} dataset(s) were not paired and will be included in the resulting list as unpaired datasets.`;

0 commit comments

Comments
 (0)