corretto bug GruppoMacro la lista veniva salvata ma anche aggiornata in memoria con solo gli ID... in questo caso TABLES_NON_AGGIORNARE_IN_MEMORIA_PERCHE_DIVERSA_STRUTTURA gli dice che alcune tabelle non devono essere aggiornate in memoria.
This commit is contained in:
@@ -140,7 +140,7 @@ export default defineComponent({
|
||||
|
||||
const optionscatalogo = ref(<any>{ maxlength: 0 });
|
||||
|
||||
function handleUpdate(newList) {
|
||||
function handleUpdate(newList: any) {
|
||||
internalProducts.value = newList;
|
||||
riaggiornaListaProdAlGenitore();
|
||||
}
|
||||
@@ -164,8 +164,10 @@ export default defineComponent({
|
||||
() => props.lista_prodotti,
|
||||
(newVal) => {
|
||||
internalProducts.value = [...newVal];
|
||||
internalProducts.value.forEach((p: IProduct) => {
|
||||
p.myorder = ProductStore.createMyOrder();
|
||||
internalProducts.value.forEach((p: any) => {
|
||||
if (typeof p === 'object' && p !== null) {
|
||||
p.myorder = ProductStore.createMyOrder();
|
||||
}
|
||||
});
|
||||
}
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user