#8036 - arrayData_exprBuilder_after #845
No reviewers
Labels
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#845
Loading…
Reference in New Issue
No description provided.
Delete Branch "8036-arrayData_exprBuilder_after"
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?
Me he equivocado poniendo revisor, no me he dado cuenta que estaba en análisis
@ -62,7 +62,6 @@ const emit = defineEmits([
'update:modelValue',
'refresh',
'clear',
'search',
Como ahora se muestra bien, se puede mostrar
8036-arrayData_exprBuilder_afterto WIP: 8036-arrayData_exprBuilder_after@ -76,4 +76,2 @@
let exprFilter;
let userParams = { ...store.userParams };
if (store?.exprBuilder) {
La solucion era ejecutar el exprBuilder despues de todo, y guardar el filtro antes de aplicarlo
@ -98,8 +90,23 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
if (store.order && store.order.length) params.filter.order = store.order;
else delete params.filter.order;
store.currentFilter = JSON.parse(JSON.stringify(params));
Usar structuredClone
@ -99,2 +92,4 @@
else delete params.filter.order;
store.currentFilter = JSON.parse(JSON.stringify(params));
delete store.currentFilter.filter.include;
Els borre per a que no moleste en la url
@ -99,2 +91,4 @@
if (store.order && store.order.length) params.filter.order = [...store.order];
else delete params.filter.order;
store.currentFilter = JSON.parse(JSON.stringify(params));
No se pot fer sense JSON.parse(JSON.stringify , he provat en structuredClone, pero no permitix gastar dins Proxys. I la opcio de fer {...params} mantendria la refernecia de 2n nivell
WIP: 8036-arrayData_exprBuilder_afterto 8036-arrayData_exprBuilder_after8036-arrayData_exprBuilder_afterto #8036 - arrayData_exprBuilder_afterNew commits pushed, approval review dismissed automatically according to repository settings