Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@NicolaiHorlacher
Copy link
Contributor

I noticed an issue in the #225 PR i created some time ago.
The useVuePdfEmbed composable can handle null values in the source filed just fine (even when not explicitly typed).
With the exception of the isDocument function I added.

I refined the isDocument function to include type guards and handle null values more gracefully.

To avoid a Typescript issue (vuejs/core#11360) I upgraded the vue devDependency to v3.5.

The vue peerDependency can stay at v3.3, because no new features of vue are used.

@hrynko hrynko linked an issue Feb 19, 2025 that may be closed by this pull request
Copy link
Owner

@hrynko hrynko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the fix @NicolaiHorlacher

@hrynko hrynko merged commit 9e43649 into hrynko:develop Feb 20, 2025
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.

TypeError: Cannot convert null to object

2 participants