Skip to content

Fix typescript error in CldOgImage.vue#146

Merged
Baroshem merged 1 commit intonuxt-modules:mainfrom
jbmolle:main
Aug 29, 2023
Merged

Fix typescript error in CldOgImage.vue#146
Baroshem merged 1 commit intonuxt-modules:mainfrom
jbmolle:main

Conversation

@jbmolle
Copy link

@jbmolle jbmolle commented Aug 25, 2023

Fix #147

Types of changes

  • [x ] Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

computedTwitterTitle in CldOgImage.vue uses currentRoute which is a ref value. To access the value, we should use currentRoute.value
Currently currentRoute.meta throws a Typescript error and it's not possible to compile the app with Typescript checks.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

@netlify
Copy link

netlify bot commented Aug 25, 2023

Deploy Preview for nuxt-cloudinary-module canceled.

Name Link
🔨 Latest commit e0635a1
🔍 Latest deploy log https://app.netlify.com/sites/nuxt-cloudinary-module/deploys/64e8caa2d6c7960008e4786c

@Baroshem
Copy link
Collaborator

Hi!

Thank you so much for this PR! I will review it, merge it, and release a new patch version with it quite soon :)

@Baroshem Baroshem merged commit b82e09c into nuxt-modules:main Aug 29, 2023
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.

Typescript error in CldOgImage.vue

2 participants