histoire-dev / histoire

⚡ Fast and beautiful interactive component playgrounds, powered by Vite
https://histoire.dev
MIT License
3.03k stars 174 forks source link

fix(vue): codegen: check before using `in` on nullable object #688

Closed DrJume closed 2 months ago

DrJume commented 3 months ago

Fixes #686

Description

Adds a truthy-ness check before accessing object with in operator.

Additional context


What is the purpose of this pull request?

Before submitting the PR, please make sure you do the following

codesandbox[bot] commented 3 months ago

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

stackblitz[bot] commented 3 months ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

netlify[bot] commented 3 months ago

Deploy Preview for histoire-controls ready!

Name Link
Latest commit 60384f8754e9a644606c698c6ef64ec07faaaa99
Latest deploy log https://app.netlify.com/sites/histoire-controls/deploys/65d672ebb78e090008f11137
Deploy Preview https://deploy-preview-688--histoire-controls.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 3 months ago

Deploy Preview for histoire-examples-vue3 ready!

Name Link
Latest commit 60384f8754e9a644606c698c6ef64ec07faaaa99
Latest deploy log https://app.netlify.com/sites/histoire-examples-vue3/deploys/65d672ebb78e090008f11139
Deploy Preview https://deploy-preview-688--histoire-examples-vue3.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 3 months ago

Deploy Preview for histoire-examples-svelte3 ready!

Name Link
Latest commit 60384f8754e9a644606c698c6ef64ec07faaaa99
Latest deploy log https://app.netlify.com/sites/histoire-examples-svelte3/deploys/65d672eb78cac00008156678
Deploy Preview https://deploy-preview-688--histoire-examples-svelte3.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 3 months ago

Deploy Preview for histoire-site ready!

Name Link
Latest commit 60384f8754e9a644606c698c6ef64ec07faaaa99
Latest deploy log https://app.netlify.com/sites/histoire-site/deploys/65d672ebacb96700086765fd
Deploy Preview https://deploy-preview-688--histoire-site.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.