You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/27 14:54:15 UTC

[GitHub] [apisix-dashboard] juzhiyuan commented on a change in pull request #2001: feat(plugin): allowing referer-restriction to dynamically adapt to the BE rules

juzhiyuan commented on a change in pull request #2001:
URL: https://github.com/apache/apisix-dashboard/pull/2001#discussion_r677531465



##########
File path: web/src/components/Plugin/UI/referer-restriction.tsx
##########
@@ -86,7 +90,7 @@ const RefererRestriction: React.FC<Props> = ({ form }) => {
                       </Form.Item>
                     </Col>
                     <Col style={{ ...removeBtnStyle, marginLeft: -10 }}>
-                      {fields.length > 1 ? (
+                      {fields.length > whiteMinLen ? (

Review comment:
       ```suggestion
                         {fields.length > allowListMinLength ? (
   ```




-- 
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-unsubscribe@apisix.apache.org

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