From 5de0ed776a93bbec113f272802870ccbfc1145ef Mon Sep 17 00:00:00 2001 From: Taron Chatoyan <47221390+t-chatoyan@users.noreply.github.com> Date: Mon, 14 Oct 2024 13:28:34 +0400 Subject: [PATCH] fixed use cases blueprints (#1861) Co-authored-by: Taron Chatoyan --- components/use-cases/engineers/ExploreBlueprints.vue | 10 +++++----- pages/use-cases/data-engineers.vue | 2 +- pages/use-cases/platform-engineers.vue | 2 +- pages/use-cases/software-engineers.vue | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/components/use-cases/engineers/ExploreBlueprints.vue b/components/use-cases/engineers/ExploreBlueprints.vue index 39c407a4f2..57b9bd26ff 100644 --- a/components/use-cases/engineers/ExploreBlueprints.vue +++ b/components/use-cases/engineers/ExploreBlueprints.vue @@ -34,13 +34,13 @@ const config = useRuntimeConfig(); const blueprints = ref([]) const props = defineProps({ - query: { + tag: { type: String, - required: true - }, + required: false + } }) const { data: blueprintsData } = await useAsyncData('blueprints', () => { - return $fetch(`${config.public.apiUrl}/blueprints?type=${props.query}`) + return $fetch(`${config.public.apiUrl}/blueprints?tags=${props.tag}`) }); const {data: tags} = await useAsyncData('blueprints-tags', () => { return $fetch(`${config.public.apiUrl}/blueprints/tags`) @@ -48,7 +48,7 @@ const generateCardHref =async (blueprint) => { let tag = await tags.value.find(f => f?.id == blueprint.tags[0]); if (!tag || !tag.name) { - return `/blueprints/unknown/${blueprint.id}-${slugify(blueprint.title)}`; + return `/blueprints/unknown/${blueprint.id}-${slugify(blueprint.title)}`; } return `/blueprints/${tag.name?.replace(' ', '-')}/${blueprint.id}-${slugify(blueprint.title)}` } diff --git a/pages/use-cases/data-engineers.vue b/pages/use-cases/data-engineers.vue index 34dd07dc48..857223eec1 100644 --- a/pages/use-cases/data-engineers.vue +++ b/pages/use-cases/data-engineers.vue @@ -18,7 +18,7 @@ /> - + - + - +