appwrite / console

The Console that makes Appwrite tick from the browser 🖥
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
310 stars 129 forks source link

fix project id undefined error by disabling when not in project #1131

Closed naman1608 closed 3 weeks ago

naman1608 commented 3 weeks ago

What does this PR do?

In the search options, the security and the settings section were not clickable as the callback functions were referencing project.$id which is undefined when the page url is not that of a project. Added condition to disable these options based on whether project.$id exists or not.

Fixes https://github.com/appwrite/console/issues/1042

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

(Write your answer here.)

vercel[bot] commented 3 weeks ago

@naman1608 is attempting to deploy a commit to the appwrite Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 3 weeks ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
console-billing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2024 0:37am
console-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2024 0:37am
console-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2024 0:37am
console-preview-cloud ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 8, 2024 0:37am