bzp2010 opened a new issue, #2438:
URL: https://github.com/apache/apisix-dashboard/issues/2438

   ### Issue description
   
   When we create an advanced match rule in a route, the page will crash if the 
reverse setting is not adjusted.
   
   Based on the occurrence conditions, it is presumed that the default value of 
the reserve field is not set correctly. At that point, executing toString on a 
`null` value will result in a JS error.
   
   
https://github.com/apache/apisix-dashboard/blob/1fa5df3618708b392bb5fc2c866419b406cc43a7/web/src/pages/Route/components/Step1/MatchingRulesView.tsx#L148-L152
   
   ### Expected behavior
   
   correct operation
   
   ### How to Reproduce
   
   1. go to route create page
   2. create a advance matching rule that not change `reserve` field (**don't 
click it**)
   3. click `confirm`
   4. page crashed
   
   ### Screenshots
   
   _No response_
   
   ### Environment
   
   - apisix-dashboard version, if have: 2.11.0
   
   
   ### Additional context
   
   _No response_


-- 
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: notifications-unsubscr...@apisix.apache.org.apache.org

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

Reply via email to