1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-25 08:09:41 +02:00

fix: unsafe window access on recipe assets (#1613)

resolves 500 error on new recipes page
This commit is contained in:
Hayden 2022-08-28 13:54:32 -08:00 committed by GitHub
parent 789ab27eef
commit 4a0fb56d18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 13 deletions

View file

@ -46,15 +46,13 @@
</v-card>
<RecipeNutrition v-if="recipe.settings.showNutrition" v-model="recipe.nutrition" class="mt-10" :edit="isEditForm" />
<client-only>
<RecipeAssets
v-if="recipe.settings.showAssets"
v-model="recipe.assets"
:edit="isEditForm"
:slug="recipe.slug"
:recipe-id="recipe.id"
/>
</client-only>
<RecipeAssets
v-if="recipe.settings.showAssets"
v-model="recipe.assets"
:edit="isEditForm"
:slug="recipe.slug"
:recipe-id="recipe.id"
/>
</div>
</template>