fix: refs #6942 e2e tests
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-05-24 12:10:27 +02:00
parent d460b198a4
commit 933e0be028
2 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@ async function save() {
const body = mapperDms(dms.value); const body = mapperDms(dms.value);
const response = await axios.post(getUrl(), body[0], body[1]); const response = await axios.post(getUrl(), body[0], body[1]);
emit('onDataSaved', body[1].params, response); emit('onDataSaved', body[1].params, response);
return response;
} }
function defaultData() { function defaultData() {

View File

@ -27,7 +27,7 @@ const save = async (data) => {
const lockerId = data.id ?? originaLockerId.value; const lockerId = data.id ?? originaLockerId.value;
const workerFk = lockerId == originaLockerId.value ? null : entityId.value; const workerFk = lockerId == originaLockerId.value ? null : entityId.value;
await axios.patch(`Lockers/${lockerId}`, { workerFk }); return axios.patch(`Lockers/${lockerId}`, { workerFk });
}; };
const init = async (data) => { const init = async (data) => {