hi i have a code that i want to put 2 conditions in one if . my code is like below :
<img v-if="attribute.swatch_type == 'color'" class="thumb-product-select" style="width: 80px;height: auto" :src="'storage/' + option.images" alt="">
<span id="color_id_select" v-if='attribute.swatch_type == 'color' && option.images ='20.jpeg')"
:style="{ background: option.swatch_value }">
</span>
so i want to say that if type is color and option.images equals to 20.jpeg then show this span . now i am getting many errors like below :
Property or method "option" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://v2.vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
found in
---> <ProductOptions>
but as you can see its defined up above and i am using it and the second error is
velocity.js:2771 [Vue warn]: Error in render: "TypeError: Cannot read property 'label' of undefined"
found in
---> <ProductOptions>
<ProductView>
i dont know why this error happens