Skip to content

Commit 85ca458

Browse files
committed
fix: add default value to Form[decorators], correct FormSpy test
1 parent b5261b6 commit 85ca458

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/FormSpy.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ describe('FormSpy', () => {
341341
<FormSpy
342342
subscription={{ dirty: true, values: true }}
343343
onChange={spy}
344-
render={render}
344+
render={renderSpy}
345345
/>
346346
</form>
347347
)}

src/ReactFinalForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const all: FormSubscription = formSubscriptionItems.reduce(
4242

4343
function ReactFinalForm<FormValues: FormValuesShape>({
4444
debug,
45-
decorators,
45+
decorators = [],
4646
destroyOnUnregister,
4747
form: alternateFormApi,
4848
initialValues,

0 commit comments

Comments
 (0)