juzhiyuan commented on a change in pull request #1994:
URL: https://github.com/apache/apisix-dashboard/pull/1994#discussion_r677928888
##########
File path: web/src/components/Plugin/UI/cors.tsx
##########
@@ -40,8 +41,12 @@ export const FORM_ITEM_WITHOUT_LABEL = {
},
};
-const Cors: React.FC<Props> = ({ form }) => {
+const Cors: React.FC<Props> = ({ form, schema }) => {
const { formatMessage } = useIntl();
+ const properties = schema?.properties
Review comment:
If we don't pass `schema`, `properties` will be undefined 🤔 right?
Should we have a check that this Property must be passed
--
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]