Skip to content

Commit 247f9fe

Browse files
committed
Merge branch 'next'
2 parents 6f6b48b + 37d22c4 commit 247f9fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/createSlice.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,7 @@ export function createSlice<
259259
actionMatchers = [],
260260
defaultCaseReducer = undefined,
261261
] =
262-
typeof options.extraReducers === 'undefined'
263-
? []
264-
: typeof options.extraReducers === 'function'
262+
typeof options.extraReducers === 'function'
265263
? executeReducerBuilderCallback(options.extraReducers)
266264
: [options.extraReducers]
267265

0 commit comments

Comments
 (0)