This is an automated email from the ASF dual-hosted git repository.

pierrejeambrun pushed a commit to branch v3-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-1-test by this push:
     new c37dfdf3d31 [v3-1-test] fix(ui): unique keys for pagination ellipses 
(#62352) (#62366)
c37dfdf3d31 is described below

commit c37dfdf3d31c6ec9880c1b3d005cccf7c94164ec
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Feb 23 17:50:35 2026 +0100

    [v3-1-test] fix(ui): unique keys for pagination ellipses (#62352) (#62366)
    
    * fix(ui): unique keys for pagination ellipses
    
    The current ellipses share the same key ("ellipsis"), which may cause 
rendering bugs.
    Added the page value to each ellipsis key to ensure they are unique.
    
    * fix(ui): correct pagination ellipsis logic in web ui
    
    Use the index to ensure ellipsis keys are unique.
    (cherry picked from commit 68525b9f0fecc02d15ff3903adc647acaf4186a7)
    
    Co-authored-by: Ying-Fang (James) Jaw <[email protected]>
---
 airflow-core/src/airflow/ui/src/components/ui/Pagination/Items.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/airflow-core/src/airflow/ui/src/components/ui/Pagination/Items.tsx 
b/airflow-core/src/airflow/ui/src/components/ui/Pagination/Items.tsx
index 06b9c155bf9..e72e9ad099e 100644
--- a/airflow-core/src/airflow/ui/src/components/ui/Pagination/Items.tsx
+++ b/airflow-core/src/airflow/ui/src/components/ui/Pagination/Items.tsx
@@ -26,7 +26,8 @@ export const Items = (props: 
React.HTMLAttributes<HTMLElement>) => (
     {({ pages }) =>
       pages.map((page, index) =>
         page.type === "ellipsis" ? (
-          <Ellipsis index={index} key={page.type} {...props} />
+          // eslint-disable-next-line react/no-array-index-key
+          <Ellipsis index={index} key={`${page.type}-${index}`} {...props} />
         ) : (
           <Item key={page.value} type="page" value={page.value} {...props} />
         ),

Reply via email to