({ params, keysToRemove}: RemoveUrlQueryParams)
| 91 | } |
| 92 | |
| 93 | export const removeKeysFromQuery = ({ params, keysToRemove}: RemoveUrlQueryParams) => { |
| 94 | const currentUrl = qs.parse(params); |
| 95 | |
| 96 | keysToRemove.forEach((key) => { |
| 97 | delete currentUrl[key]; |
| 98 | }) |
| 99 | |
| 100 | return qs.stringifyUrl({ |
| 101 | url: window.location.pathname, |
| 102 | query: currentUrl, |
| 103 | }, |
| 104 | { skipNull: true}) |
| 105 | } |
| 106 | |
| 107 | interface BadgeParam { |
| 108 | criteria: { |
no outgoing calls
no test coverage detected