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

msyavuz pushed a commit to branch msyavuz/fix/highlight-class-undefined
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 9e569e8f12ff678915341651a8d74772d9f011cf
Author: Mehmet Salih Yavuz <[email protected]>
AuthorDate: Tue Dec 23 13:38:52 2025 +0300

    fix: only apply highlight class if it's defined
---
 .../superset-ui-core/src/components/TableCollection/index.tsx         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/superset-frontend/packages/superset-ui-core/src/components/TableCollection/index.tsx
 
b/superset-frontend/packages/superset-ui-core/src/components/TableCollection/index.tsx
index 732ef675c4..1edd0f440f 100644
--- 
a/superset-frontend/packages/superset-ui-core/src/components/TableCollection/index.tsx
+++ 
b/superset-frontend/packages/superset-ui-core/src/components/TableCollection/index.tsx
@@ -280,7 +280,9 @@ function TableCollection<T extends object>({
 
   const getRowClassName = useCallback(
     (record: Record<string, unknown>) =>
-      record?.id === highlightRowId ? 'table-row-highlighted' : '',
+      highlightRowId !== undefined && record?.id === highlightRowId
+        ? 'table-row-highlighted'
+        : '',
     [highlightRowId],
   );
 

Reply via email to