diff --git a/app/components/TutorialsArticles.vue b/app/components/TutorialsArticles.vue index 27de840e..31aca3a7 100644 --- a/app/components/TutorialsArticles.vue +++ b/app/components/TutorialsArticles.vue @@ -6,10 +6,10 @@ const props = defineProps<{ showMore?: boolean; }>(); -const { data: articles } = await useAsyncData(props.path + '-preview', () => { - const query = queryCollection('content') - .where('path', 'LIKE', `${props.path}/%`) - .select('title', 'description', 'icon', 'path', 'technologies'); +const { data: articles } = await useAsyncData(props.path + "-preview", () => { + const query = queryCollection("content") + .where("path", "LIKE", `${props.path}/%`) + .select("title", "description", "icon", "path", "technologies"); if (props.limit) { query.limit(props.limit); @@ -19,20 +19,15 @@ const { data: articles } = await useAsyncData(props.path + '-preview', () => { }); const imageSrc = (article: { technologies?: string[] }) => { - const technologies = article?.technologies || ['directus']; - const techString = technologies.join(', '); + const technologies = article?.technologies || ["directus"]; + const techString = technologies.join(", "); return `/docs/api/tutorialimg?logos=${techString}`; };