siyaramaa commented on code in PR #1789:
URL: https://github.com/apache/apisix-website/pull/1789#discussion_r1586245778


##########
doc/src/pages/edit.tsx:
##########
@@ -20,18 +22,26 @@ const Edit: FC = () => {
     const path = getPath();
 
     setIsLoading(true);
+
+    if (path === '' || !path.includes('https://github.com/apache')) {
+      setPathExist(false);
+      setIsLoading(false);
+      return;
+    }

Review Comment:
   Thanks for the review, @SkyeYoung. I'll move that code up and use `if 
(!path?.includes(INDEX_URL))` as you suggested. By the way, I'm currently using 
`INDEX_URL` as `https://github.com/apache/apisix` is that okay? Thanks!



-- 
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]

Reply via email to