leezng commented on code in PR #8585:
URL: https://github.com/apache/inlong/pull/8585#discussion_r1272915202
##########
inlong-dashboard/src/ui/pages/TenantManagement/index.tsx:
##########
@@ -44,6 +42,33 @@ const Comp: React.FC = () => {
open: false,
});
+ const { run: getTenantData } = useRequest(
+ {
+ url: '/tenant/list',
+ method: 'POST',
+ data: {
+ pageNum: 1,
+ pageSize: 9999,
+ listByLoginUser: true,
+ },
+ },
+ {
+ manual: true,
+ onSuccess: result => {
+ const list = [];
+ result.list.map(item => {
Review Comment:
Support use:
```ts
const list = result.list.map( ... )
```
##########
inlong-dashboard/src/ui/components/Layout/Tenant/index.tsx:
##########
@@ -106,24 +94,29 @@ const Comp: React.FC = () => {
};
const onFilter = allValues => {
Review Comment:
`allValues` has a plural meaning, but here value has only one parameter, it
is recommended to change the parameter name to `keyword`.
--
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]