chore: refs #7323 refactor autofillbic
This commit is contained in:
parent
6f9cd7fe15
commit
c47635fcf2
|
@ -132,9 +132,7 @@ async function autofillBic(worker) {
|
||||||
let filter = { where: { id: bankEntityId } };
|
let filter = { where: { id: bankEntityId } };
|
||||||
|
|
||||||
const { data } = await axios.get(`BankEntities`, { params: { filter } });
|
const { data } = await axios.get(`BankEntities`, { params: { filter } });
|
||||||
const hasData = data && data[0];
|
worker.bankEntityFk = data?.[0]?.id ?? undefined;
|
||||||
if (hasData) worker.bankEntityFk = data[0].id;
|
|
||||||
else if (!hasData) worker.bankEntityFk = undefined;
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue