wuchunfu commented on code in PR #164:
URL: https://github.com/apache/seatunnel-web/pull/164#discussion_r1644443600


##########
seatunnel-ui/src/hooks/use-table-link.ts:
##########
@@ -56,29 +56,27 @@ export const useTableLink = (
     const maxWidth = params.width ? params.width - 24 : params.width
     const textColor = params.textColor ? params.textColor(rowData) || '' : ''
     return h(
-          ButtonLink,
-          {
-            href: params.button.getHref ? params.button.getHref(rowData) : 
null,
-            onClick: () =>
-              params.button.onClick && params.button.onClick(rowData),
-            disabled: params.button.disabled && params.button.disabled(rowData)
-          },
-          {
-            default: () =>
-              h(
-                NEllipsis,
-                { style: `max-width: ${maxWidth}px; color: ${textColor}` },
-                () => {
-                  if (!params.showEmpty) {
-                    return rowData[params.key]
-                  } else {
-                    return rowData[params.key] || '-'
-                  }
-                }
-              )
-          }
-        )
-    
+      ButtonLink,
+      {
+        href: params.button.getHref ? params.button.getHref(rowData) : null,
+        onClick: () => params.button.onClick && params.button.onClick(rowData),
+        disabled: params.button.disabled && params.button.disabled(rowData)
+      },
+      {
+        default: () =>
+          h(
+            NEllipsis,
+            { style: `max-width: ${maxWidth}px; color: ${textColor}` },
+            () => {
+              if (!params.showEmpty) {
+                return rowData[params.key]
+              } else {
+                return rowData[params.key] || '-'
+              }
+            }
+          )
+      }
+    )
   }

Review Comment:
   Same as above, and so on



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to