Skip to content

Commit 6870b20

Browse files
committed
Ensure plurality in backfill count message with more than 1 run.
1 parent d8d03fd commit 6870b20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airflow-core/src/airflow/ui/src/components/DagActions/inlineMessage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ import type { TFunction } from "i18next";
2222
export const getInlineMessage = (isPendingDryRun: boolean, totalEntries: number, translate: TFunction) =>
2323
isPendingDryRun ? (
2424
<Skeleton height="20px" width="100px" />
25-
) : totalEntries > 1 ? (
25+
) : totalEntries === 1 ? (
2626
<Text color="fg.success" fontSize="sm">
2727
{translate("backfill.affectedOne")}
2828
</Text>
29-
) : totalEntries > 0 ? (
29+
) : totalEntries > 1 ? (
3030
<Text color="fg.success" fontSize="sm">
3131
{translate("backfill.affectedMultiple", { count: totalEntries })}
3232
</Text>

0 commit comments

Comments
 (0)