Skip to content

Fix type error in InlineCitationCardTrigger by checking sources[0] directly#159

Merged
haydenbleasel merged 3 commits intovercel:mainfrom
smorimoto:fix-inline-citation-type
Oct 28, 2025
Merged

Fix type error in InlineCitationCardTrigger by checking sources[0] directly#159
haydenbleasel merged 3 commits intovercel:mainfrom
smorimoto:fix-inline-citation-type

Conversation

@smorimoto
Copy link
Copy Markdown
Contributor

Change the condition from sources.length to sources[0] to ensure TypeScript recognises that sources[0] is defined when passed to the URL constructor. This resolves the string | undefined is not assignable to string | URL type error.

…` directly

Change the condition from `sources.length` to `sources[0]` to ensure
TypeScript recognises that `sources[0]` is defined when passed to the URL
constructor. This resolves the `string | undefined` is not assignable to
`string | URL` type error.

Signed-off-by: Sora Morimoto <sora@morimoto.io>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Oct 23, 2025

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

A member of the Team first needs to authorize it.

@haydenbleasel
Copy link
Copy Markdown
Contributor

Thanks @smorimoto 💪

@haydenbleasel haydenbleasel merged commit 2fce23c into vercel:main Oct 28, 2025
3 of 5 checks passed
@smorimoto smorimoto deleted the fix-inline-citation-type branch October 28, 2025 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants