Commit 56813fc
committed
fix: improve getQueryObject to exclude empty arrays from output (#49)
- Replace double negation (`!!`) with explicit length checks for better readability
- Add explicit deletion of empty include and sort arrays from query object
- Use consistent double quotes for string literals
- Prevents empty arrays from appearing in generated query parameters
This ensures cleaner query strings by excluding empty include/sort parameters
instead of including them as empty strings.1 parent a28124b commit 56813fc
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
384 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
385 | 388 | | |
386 | | - | |
387 | | - | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
388 | 394 | | |
| 395 | + | |
389 | 396 | | |
390 | 397 | | |
391 | 398 | | |
| |||
0 commit comments