Skip to content

Commit

Permalink
fix: splitting query params is more smart
Browse files Browse the repository at this point in the history
  • Loading branch information
fdewas-aneo committed Dec 16, 2024
1 parent 3375967 commit d9969e3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/app/components/inspect-list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,12 @@ export class InspectListComponent {
if (entry && this.list.length !== 0) {
this._queryParams = {};
if (this.list.length > 50) {
const _for = entry.slice(2, 6) as 'custom' | 'root' | 'options';
const field = Number(entry.slice(7, 8));
const operator = Number(entry.slice(9, 10));
const splittedKey = entry.split('-');
this.list.forEach((value) => {
this.filters.push([{
for: _for,
field: field,
operator: operator,
for: splittedKey[1] as 'custom' | 'root' | 'options',
field: Number(splittedKey[2]),
operator: Number(splittedKey[3]),
value: value,
}]);
});
Expand Down

0 comments on commit d9969e3

Please sign in to comment.