Fix: Pagination bug with filters payload (#3747)
* Removes the last operators value * Moved removing the last operator to the payload generator * Update app/javascript/dashboard/helper/filterQueryGenerator.js This makes sure the last operator is never sent to the request Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> * Fixed the test specs * Fixed the intendation and added comments Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com>
This commit is contained in:
@@ -31,7 +31,7 @@ const testData = [
|
||||
attribute_key: 'id',
|
||||
filter_operator: 'equal_to',
|
||||
values: 'This is a test',
|
||||
query_operator: null,
|
||||
query_operator: 'or',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -53,7 +53,6 @@ const finalResult = {
|
||||
attribute_key: 'id',
|
||||
filter_operator: 'equal_to',
|
||||
values: ['This is a test'],
|
||||
query_operator: null,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user