#7281 solve terminal warnings #376
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#376
Loading…
Reference in New Issue
No description provided.
Delete Branch "7281-solveTerminalWarnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -6,7 +6,7 @@ import FormModel from 'components/FormModel.vue';
const emit = defineEmits(['onDataSaved']);
const $props = defineProps({
no se usa. Sale warning.
@ -29,10 +29,12 @@ async function confirm() {
const response = { address: address.value };
if (props.promise) {
isLoading.value = true;
const { address: _address, ...restData } = props.data;
no se usa _address. Sale warning.
@ -33,3 +32,3 @@
try {
Object.assign(response, restData);
const dataCopy = JSON.parse(JSON.stringify({ ...props.data }));
Para copiar un objeto se hace así, si no , estás creando una referencia del mismo.
deepclone se llama
@ -1,21 +1,16 @@
<script setup>
import { useI18n } from 'vue-i18n';
const props = defineProps({
no se usa. Sale warning.
@ -17,4 +11,1 @@
const { t } = useI18n();
const entityId = computed(() => $props.id || route.params.id);
const filter = {
no se usa. Sale warning.
@ -202,9 +202,9 @@ const toCustomerAddressEdit = (addressId) => {
<div v-if="item.observations.length">
<div
:key="index"
Se ha usado esta variable antes.sale warning.
@ -309,9 +309,9 @@ const addRow = () => {
const lastItemCopy = JSON.parse(
JSON.stringify(fixedPrices.value[fixedPrices.value.length - 1])
);
const { id, ...restOfItem } = lastItemCopy;
No se usa id, sale warning
OrderSummary da warning
@ -203,3 +203,3 @@
<div v-if="item.observations.length">
<div
:key="index"
:key="obsIndex"
se puede cambiar a ob?
Propuesta, dejar la key como obIndex
Gestionado.