7299_testToMaster #351

Merged
alexm merged 321 commits from 7299_testToMaster into master 2024-05-07 05:36:02 +00:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit 93015d9f98 - Show all commits

View File

@ -43,14 +43,13 @@ watch(
);
const getData = async (id) => {
const filter = { clientFk: id };
const filter = { where: { clientFk: id } };
try {
const { data } = await axios.get('ClientUnpaids', {
params: { filter: JSON.stringify(filter) },
});
const unpaid = data.find((element) => element.clientFk == id);
if (unpaid) {
setValues(unpaid);
if (data.length) {
setValues(data[0]);
} else {
defaultValues();
}