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


##########
inlong-dashboard/src/pages/GroupDashboard/config.tsx:
##########
@@ -68,6 +69,17 @@ export const getFilterFormContent = defaultValues => [
       dropdownMatchSelectWidth: false,
     },
   },
+  {
+    type: 'select',
+    name: 'mqType',
+    label: i18n.t('meta.Group.MQType'),
+    initialValue: defaultValues.mqType,
+    props: {
+      allowClear: true,
+      options: allDefaultGroups,

Review Comment:
   This is consistent with the above.



##########
inlong-dashboard/src/pages/ConsumeDashboard/config.tsx:
##########
@@ -79,6 +80,17 @@ export const getFilterFormContent = defaultValues => [
       dropdownMatchSelectWidth: false,
     },
   },
+  {
+    type: 'select',
+    name: 'mqType',
+    label: i18n.t('meta.Consume.MQType'),
+    initialValue: defaultValues.mqType,
+    props: {
+      allowClear: true,
+      options: allDefaultConsumes,

Review Comment:
   You can't use `allDefaultConsumes` directly, you need to use the exposed 
`hooks`, as follows:
   
   
https://github.com/apache/inlong/blob/e6a8d9c7d42a8f8b8aae9ec88fa9bbae1c0a451c/inlong-dashboard/src/pages/Nodes/index.tsx#L33
   
   
https://github.com/apache/inlong/blob/e6a8d9c7d42a8f8b8aae9ec88fa9bbae1c0a451c/inlong-dashboard/src/pages/Nodes/index.tsx#L103



-- 
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: commits-unsubscr...@inlong.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to