add recipe.image cache key to bush caches (#1427)

* add recipe.image cache key to bush caches

* hotfix: TS type error
This commit is contained in:
Hayden 2022-06-19 11:47:16 -08:00 committed by GitHub
parent c865bc7769
commit f122c382e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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<string>(props.webhook.scheduledTime);
const itemLocal = ref<string>(timeUTCToLocal(props.webhook.scheduledTime));
const scheduledTime = computed({
get() {

View File

@ -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"
>

View File

@ -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"
>