leezng commented on code in PR #6927:
URL: https://github.com/apache/inlong/pull/6927#discussion_r1052799061


##########
inlong-dashboard/src/metas/clusters/common/ClusterDefaultInfo.ts:
##########
@@ -58,7 +59,9 @@ export class ClusterDefaultInfo implements DataWithBackend, 
RenderRow, RenderLis
         })),
     },
   })
-  @ColumnDecorator()
+  @ColumnDecorator({
+    render: text => text && getClustersType(text),

Review Comment:
   It is recommended to use `clusters.find()` directly here, do not export a 
new method, to avoid the complexity of nesting design model relationships.



-- 
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