Baoyuantop commented on code in PR #2770:
URL: https://github.com/apache/apisix-dashboard/pull/2770#discussion_r1144519710
##########
web/src/pages/Route/Create.tsx:
##########
@@ -260,17 +260,10 @@ const Page: React.FC<Props> = (props) => {
if (nextStep === 2) {
if (step === 1) {
form1.validateFields().then((value) => {
- const { redirectOption, hosts } = value;
- const filterHosts = hosts.filter(Boolean);
- Promise.all([
- redirectOption === 'forceHttps' && filterHosts.length !== 0
- ? checkHostWithSSL(hosts)
- : Promise.resolve(),
- checkUniqueName(
- value.name,
- props.route.path.indexOf('edit') > 0 ? (props as
any).match.params.rid : '',
- ),
- ]).then(() => {
+ checkUniqueName(
+ value.name,
+ props.route.path.indexOf('edit') > 0 ? (props as
any).match.params.rid : '',
Review Comment:
This PR only deletes one function, and the rest of it is not expected to be
changed.
--
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]