diff --git a/components/crear/CrearCarrito.vue b/components/crear/CrearCarrito.vue index 93d16a6..01e0be2 100644 --- a/components/crear/CrearCarrito.vue +++ b/components/crear/CrearCarrito.vue @@ -21,8 +21,8 @@ - - @@ -24,7 +24,7 @@ import axios from 'axios' export default { props: { deshabilitarOptVacia: { typeof: Boolean, required: false, default: true }, - marcaPadre: { type: Object, required: true, default: () => ({}) }, + idMarcaPadre: { type: Number, required: true, default: 0 }, columnSize: { typeof: String, required: false, default: '' }, tipo: { typeof: String, required: true, default: '' }, }, @@ -32,7 +32,7 @@ export default { return { marcas: [], isLoadingSelect: false, - marca: null, + idMarca: 0, } }, methods: { @@ -55,11 +55,11 @@ export default { }, }, watch: { - marca(marcaSeleccionada) { + idMarca(marcaSeleccionada) { if (marcaSeleccionada) this.$emit('marca-seleccionada', marcaSeleccionada) }, - marcaPadre(nuevaMarca) { - if (this.$funcionesGlobales.objIsEmpty(nuevaMarca)) this.marca = null + idMarcaPadre(nuevaMarca) { + this.idMarca = nuevaMarca }, }, created() {