[WEB-2110] fix: broken link while trying to copy page link#5263
[WEB-2110] fix: broken link while trying to copy page link#5263SatishGandham merged 1 commit intopreviewfrom
Conversation
WalkthroughThe update to the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- web/core/components/pages/editor/header/options-dropdown.tsx (1 hunks)
Additional comments not posted (1)
web/core/components/pages/editor/header/options-dropdown.tsx (1)
111-113: LGTM! But verify the correctness ofprojectIdhandling.The code changes are approved.
However, ensure that the
projectIdis correctly handled and that the constructed URLs are valid.Verification successful
LGTM! The
projectIdis handled correctly and the constructed URLs are valid.The code changes are approved.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the correctness of `projectId` handling. # Test: Search for the `useParams` hook usage. Expect: Correct handling of `projectId`. rg --type tsx -A 5 $'useParams'Length of output: 58
Script:
#!/bin/bash # Description: Verify the correctness of `projectId` handling. # Test: Search for the `useParams` hook usage. Expect: Correct handling of `projectId`. rg --type ts -A 5 'useParams'Length of output: 336127
Problem:
When trying to copy a page link from the options dropdown inside a page, projectId comes as
undefined.Solution:
Add project information to the page link only if the
projectIdis present in the params.Plane issue: WEB-2110
Summary by CodeRabbit