Skip to content

Commit b8d1f40

Browse files
lukasviceCopilot
andcommitted
make eslint automatic fixes
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 8daf5f9 commit b8d1f40

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/routers/reactRouter.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,7 @@ const useReactRouter = (
4848
if (value !== undefined) {
4949
const defaultValue = defaultQuery[key]
5050

51-
if (
52-
defaultValue !== undefined &&
53-
value.toString() === defaultValue.toString()
54-
) {
51+
if (value.toString() === defaultValue?.toString()) {
5552
urlSearchParams.delete(key)
5653
} else {
5754
const [firstValue, ...restValues] = Array.isArray(value)

0 commit comments

Comments
 (0)