- ver 1.2.47 :
- corretto errore di modifica scheda - aggiunto scraping (fase 1)
This commit is contained in:
@@ -917,7 +917,7 @@ export default defineComponent({
|
||||
trovatocatalogo?.condition_andor !== undefined ? trovatocatalogo.condition_andor : costanti.OP_ANDOR.OP_AND,
|
||||
};
|
||||
|
||||
if (!generalista && myCatalog.value.lista_prodotti?.length > 0) {
|
||||
if (!generalista && myCatalog.value?.lista_prodotti?.length > 0) {
|
||||
arrprod = myCatalog.value.lista_prodotti;
|
||||
} else {
|
||||
arrprod = productStore.getProducts(cosa.value);
|
||||
@@ -1064,7 +1064,7 @@ export default defineComponent({
|
||||
condition_andor: trovatocatalogo?.condition_andor ?? costanti.OP_ANDOR.OP_AND,
|
||||
};
|
||||
|
||||
if (myCatalog.value.lista_prodotti?.length > 0) {
|
||||
if (myCatalog.value?.lista_prodotti?.length > 0) {
|
||||
arrprod = myCatalog.value.lista_prodotti;
|
||||
} else {
|
||||
arrprod = productStore.getProducts(cosa.value);
|
||||
@@ -1186,7 +1186,7 @@ export default defineComponent({
|
||||
|
||||
let arrGeneraleProdotti = [];
|
||||
|
||||
if (usaprodottiSalvati && myCatalog.value.lista_prodotti?.length > 0) {
|
||||
if (usaprodottiSalvati && myCatalog.value?.lista_prodotti?.length > 0) {
|
||||
} else {
|
||||
arrGeneraleProdotti = arrProducts.value;
|
||||
}
|
||||
@@ -1208,7 +1208,7 @@ export default defineComponent({
|
||||
|
||||
let arrProdFiltrati: IProduct[] = [];
|
||||
|
||||
if (usaprodottiSalvati && myCatalog.value.lista_prodotti?.length > 0) {
|
||||
if (usaprodottiSalvati && myCatalog.value?.lista_prodotti?.length > 0) {
|
||||
arrProdFiltrati = myCatalog.value.lista_prodotti;
|
||||
} else {
|
||||
if (recscheda.scheda.productTypes!.length > 0) {
|
||||
@@ -1784,9 +1784,9 @@ export default defineComponent({
|
||||
|
||||
if (element) {
|
||||
// add this record to lista_prodotti
|
||||
if (myCatalog.value && !myCatalog.value.lista_prodotti?.some((p) => p._id === element._id)) {
|
||||
if (myCatalog.value && !myCatalog.value?.lista_prodotti?.some((p) => p._id === element._id)) {
|
||||
// inserire il record in cima
|
||||
const arr = myCatalog.value.lista_prodotti || [];
|
||||
const arr = myCatalog.value?.lista_prodotti || [];
|
||||
if (where === shared_consts.WHERE_INSERT.ONTOP) arr.unshift(element);
|
||||
else if (where === shared_consts.WHERE_INSERT.ONBOTTOM) arr.push(element);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user