7983-testToMaster_2438 #718

Merged
alexm merged 353 commits from 7983-testToMaster_2438 into master 2024-09-17 05:39:39 +00:00
1 changed files with 6 additions and 8 deletions
Showing only changes of commit 3359d5b6ae - Show all commits

View File

@ -40,16 +40,14 @@ export function useArrayData(key, userOptions) {
if (!store?.filter?.where) { if (!store?.filter?.where) {
//Cuando el cambio viene por VnSearchbar //Cuando el cambio viene por VnSearchbar
if (route.params.id) store.url = store.url.replace(/(\d+)/, route.params.id); if (route.params.id) store.url = store.url.replace(/(\d+)/, route.params.id);
} else { return;
}
// Cuando el usuario cambia en la URL // Cuando el usuario cambia en la URL
const keyFk = Object.keys(store.filter.where).find((key) => const keyFk = Object.keys(store.filter.where).find((key) => key.endsWith('Fk'));
key.endsWith('Fk')
);
if (keyFk) { if (keyFk) {
store.filter.where[keyFk] = route.params.id; store.filter.where[keyFk] = route.params.id;
} }
} }
}
function setOptions() { function setOptions() {
const allowedOptions = [ const allowedOptions = [