7366-travelMigration #430
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#430
Loading…
Reference in New Issue
No description provided.
Delete Branch "7366-travelMigration"
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?
@ -117,8 +117,8 @@ onMounted(async () => {
state.set($props.model, $props.formInitialData);
if ($props.autoLoad && !$props.formInitialData && $props.url) await fetch();
Simplificar if
@ -36,2 +35,3 @@
const cloneTravelWithEntries = async () => {
try {
axios.post(`Travels/${$props.travel.id}/cloneWithEntries`);
const { id } = await axios.post(`Travels/${$props.travel.id}/cloneWithEntries`);
Revisar, normalmente se hace:
const { data } = ...
y de ahi ya el id@ -37,2 +37,3 @@
axios.post(`Travels/${$props.travel.id}/cloneWithEntries`);
const { data } = await axios.post(`Travels/${$props.travel.id}/cloneWithEntries`);
notify('globals.dataSaved', 'positive');
router.push({ name: 'TravelBasicData', params: { data } });
data.id
New commits pushed, approval review dismissed automatically according to repository settings