fixed youtube import and handle resize without ingredients

This commit is contained in:
vabene1111
2023-12-02 18:45:34 +01:00
parent 2cb010c8b4
commit 11c8422fbb
2 changed files with 5 additions and 6 deletions

View File

@ -277,9 +277,7 @@ export default {
}
},
handleResize: function () {
if (document.getElementById('nutrition_container') !== null) {
this.ingredient_height = document.getElementById('ingredient_container').clientHeight - document.getElementById('nutrition_container').clientHeight
} else {
if (document.getElementById('ingredient_container') !== null) {
this.ingredient_height = document.getElementById('ingredient_container').clientHeight
}
},