From f122c382e9bbe49cf57ecde3fd9e46acdb08b215 Mon Sep 17 00:00:00 2001 From: Hayden <64056131+hay-kot@users.noreply.github.com> Date: Sun, 19 Jun 2022 11:47:16 -0800 Subject: [PATCH] add recipe.image cache key to bush caches (#1427) * add recipe.image cache key to bush caches * hotfix: TS type error --- frontend/components/Domain/Group/GroupWebhookEditor.vue | 4 ++-- frontend/pages/recipe/_slug/index.vue | 2 +- frontend/pages/shared/recipes/_id.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/components/Domain/Group/GroupWebhookEditor.vue b/frontend/components/Domain/Group/GroupWebhookEditor.vue index b276fd032355..26e507a0c0f6 100644 --- a/frontend/components/Domain/Group/GroupWebhookEditor.vue +++ b/frontend/components/Domain/Group/GroupWebhookEditor.vue @@ -47,8 +47,8 @@ export default defineComponent({ }, emits: ["delete", "save", "test"], setup(props, { emit }) { - const itemUTC = ref(props.webhook.scheduledTime); - const itemLocal = ref(timeUTCToLocal(props.webhook.scheduledTime)); + const itemUTC = ref(props.webhook.scheduledTime); + const itemLocal = ref(timeUTCToLocal(props.webhook.scheduledTime)); const scheduledTime = computed({ get() { diff --git a/frontend/pages/recipe/_slug/index.vue b/frontend/pages/recipe/_slug/index.vue index 6ed2c750507a..acdbfb6754e3 100644 --- a/frontend/pages/recipe/_slug/index.vue +++ b/frontend/pages/recipe/_slug/index.vue @@ -35,7 +35,7 @@ :max-width="enableLandscape ? null : '50%'" min-height="50" :height="hideImage ? undefined : imageHeight" - :src="recipeImage(recipe.id, imageKey)" + :src="recipeImage(recipe.id, recipe.image, imageKey)" class="d-print-none" @error="hideImage = true" > diff --git a/frontend/pages/shared/recipes/_id.vue b/frontend/pages/shared/recipes/_id.vue index 1458b8465c10..b25dd47630c1 100644 --- a/frontend/pages/shared/recipes/_id.vue +++ b/frontend/pages/shared/recipes/_id.vue @@ -34,7 +34,7 @@ :key="imageKey" :max-width="enableLandscape ? null : '50%'" :height="hideImage ? '50' : imageHeight" - :src="recipeImage(recipe.id, imageKey)" + :src="recipeImage(recipe.id, recipe.image, imageKey)" class="d-print-none" @error="hideImage = true" >