Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors when deleting complex field items #51

Open
iljamm opened this issue Aug 9, 2019 · 1 comment
Open

errors when deleting complex field items #51

iljamm opened this issue Aug 9, 2019 · 1 comment

Comments

@iljamm
Copy link

iljamm commented Aug 9, 2019

I am seeing the following errors in chrome's dev tools when trying to delete an item in a complex field:

index.js:41 Uncaught TypeError: Cannot read property 'fields' of undefined
at getFieldsFromFieldsHolder (index.js:41)
at output (index.js:129)
at eval (index.js:66)
at Object.eval [as next] (index.es.js:219)
at eval (readme.js:53)
at eval (VM64436 callbag-distinct-until-changed.es.js:34)
at eval (VM64093 readme.js:48)
at eval (from-selector.js:28)
at data.js?ver=4.4.0:1362
at Array.forEach ()
getFieldsFromFieldsHolder @ index.js:41
output @ index.js:129
(anonymous) @ index.js:66
(anonymous) @ index.es.js:219
(anonymous) @ readme.js:53
(anonymous) @ callbag-distinct-until-changed.es.js:34
(anonymous) @ VM64093 readme.js:48
(anonymous) @ from-selector.js:28
(anonymous) @ data.js?ver=4.4.0:1362
globalListener @ data.js?ver=4.4.0:1361
(anonymous) @ data.js?ver=4.4.0:685
dispatch @ data.js?ver=4.4.0:3467
(anonymous) @ data.js?ver=4.4.0:558
(anonymous) @ data.js?ver=4.4.0:613
(anonymous) @ data.js?ver=4.4.0:778
proxyDispatch @ data.js?ver=4.4.0:2168
container. @ index.es.js:248
container. @ index.es.js:248
(anonymous) @ index.js:138
(anonymous) @ index.js:135
(anonymous) @ group.js:82
callCallback @ react-dom.js?ver=16.8.4:143
invokeGuardedCallbackDev @ react-dom.js?ver=16.8.4:193
invokeGuardedCallback @ react-dom.js?ver=16.8.4:250
invokeGuardedCallbackAndCatchFirstError @ react-dom.js?ver=16.8.4:264
executeDispatch @ react-dom.js?ver=16.8.4:555
executeDispatchesInOrder @ react-dom.js?ver=16.8.4:577
executeDispatchesAndRelease @ react-dom.js?ver=16.8.4:674
executeDispatchesAndReleaseTopLevel @ react-dom.js?ver=16.8.4:682
forEachAccumulated @ react-dom.js?ver=16.8.4:656
runEventsInBatch @ react-dom.js?ver=16.8.4:810
runExtractedEventsInBatch @ react-dom.js?ver=16.8.4:818
handleTopLevel @ react-dom.js?ver=16.8.4:4929
batchedUpdates$1 @ react-dom.js?ver=16.8.4:20528
batchedUpdates @ react-dom.js?ver=16.8.4:2149
dispatchEvent @ react-dom.js?ver=16.8.4:5008
(anonymous) @ react-dom.js?ver=16.8.4:20579
unstable_runWithPriority @ react.js?ver=16.8.4:735
interactiveUpdates$1 @ react-dom.js?ver=16.8.4:20578
interactiveUpdates @ react-dom.js?ver=16.8.4:2168
dispatchInteractiveEvent @ react-dom.js?ver=16.8.4:4985
Show 11 more frames
index.js:41 Uncaught TypeError: Cannot read property 'fields' of undefined
at getFieldsFromFieldsHolder (index.js:41)
at output (index.js:129)
at eval (index.js:66)
at Object.eval [as next] (index.es.js:219)
at eval (readme.js:53)
at eval (VM64436 callbag-distinct-until-changed.es.js:34)
at eval (VM64093 readme.js:48)
at eval (from-selector.js:28)
at data.js?ver=4.4.0:1362
at Array.forEach ()
getFieldsFromFieldsHolder @ index.js:41
output @ index.js:129
(anonymous) @ index.js:66
(anonymous) @ index.es.js:219
(anonymous) @ readme.js:53
(anonymous) @ callbag-distinct-until-changed.es.js:34
(anonymous) @ VM64093 readme.js:48
(anonymous) @ from-selector.js:28
(anonymous) @ data.js?ver=4.4.0:1362
globalListener @ data.js?ver=4.4.0:1361
(anonymous) @ data.js?ver=4.4.0:685
dispatch @ data.js?ver=4.4.0:3467
(anonymous) @ data.js?ver=4.4.0:558
(anonymous) @ data.js?ver=4.4.0:613
(anonymous) @ data.js?ver=4.4.0:778
proxyDispatch @ data.js?ver=4.4.0:2168
(anonymous) @ index.js:125
(anonymous) @ index.es.js:219
(anonymous) @ readme.js:53
(anonymous) @ VM64093 readme.js:48
(anonymous) @ VM64079 readme.js:27
(anonymous) @ VM64079 readme.js:27
(anonymous) @ VM64081 readme.js:31
next @ readme.js:58
(anonymous) @ index.es.js:233
(anonymous) @ index.es.js:232
instance.triggerUnmount @ index.es.js:293
WithEffects.componentWillUnmount @ index.es.js:358
callComponentWillUnmountWithTimer @ react-dom.js?ver=16.8.4:17258
callCallback @ react-dom.js?ver=16.8.4:143
invokeGuardedCallbackDev @ react-dom.js?ver=16.8.4:193
invokeGuardedCallback @ react-dom.js?ver=16.8.4:250
safelyCallComponentWillUnmount @ react-dom.js?ver=16.8.4:17265
commitUnmount @ react-dom.js?ver=16.8.4:17642
commitNestedUnmounts @ react-dom.js?ver=16.8.4:17673
unmountHostComponents @ react-dom.js?ver=16.8.4:17934
commitDeletion @ react-dom.js?ver=16.8.4:17993
commitAllHostEffects @ react-dom.js?ver=16.8.4:18774
callCallback @ react-dom.js?ver=16.8.4:143
invokeGuardedCallbackDev @ react-dom.js?ver=16.8.4:193
invokeGuardedCallback @ react-dom.js?ver=16.8.4:250
commitRoot @ react-dom.js?ver=16.8.4:19002
(anonymous) @ react-dom.js?ver=16.8.4:20507
unstable_runWithPriority @ react.js?ver=16.8.4:735
completeRoot @ react-dom.js?ver=16.8.4:20506
performWorkOnRoot @ react-dom.js?ver=16.8.4:20435
performWork @ react-dom.js?ver=16.8.4:20343
performSyncWork @ react-dom.js?ver=16.8.4:20317
interactiveUpdates$1 @ react-dom.js?ver=16.8.4:20584
interactiveUpdates @ react-dom.js?ver=16.8.4:2168
dispatchInteractiveEvent @ react-dom.js?ver=16.8.4:4985
Show 21 more frames
react-dom.js?ver=16.8.4:17206 The above error occurred in the component:
in WithEffects (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithDispatch(WithEffects) (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithDispatch(WithDispatch(WithEffects)) (created by WithEffects)
in WithEffects (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithSelect(WithEffects) (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithConditionalLogic(WithDispatch(WithDispatch(WithEffects))) (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithDispatch(WithConditionalLogic(WithDispatch(WithDispatch(WithEffects)))) (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithField(WithConditionalLogic(WithDispatch(WithDispatch(WithEffects)))) (created by WithFilters(WithFilters(TextField)))
in WithFilters(WithFilters(TextField)) (created by ComplexGroup)
in div (created by Field)
in div (created by Field)
in Field
in Unknown (created by WithFilters(Field))
in WithFilters(Field) (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithSelect(WithFilters(Field)) (created by WithFilters(WithSelect(WithFilters(Field))))
in WithFilters(WithSelect(WithFilters(Field))) (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithDispatch(WithFilters(WithSelect(WithFilters(Field)))) (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithField(WithFilters(WithSelect(WithFilters(Field)))) (created by ComplexGroup)
in div (created by ComplexGroup)
in div (created by ComplexGroup)
in ComplexGroup (created by ComplexField)
in div (created by ComplexField)
in Sortable (created by ComplexField)
in ComplexField (created by ComplexField)
in ComplexField
in Unknown (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithDispatch(Component) (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithSelect(WithDispatch(Component)) (created by WithFilters(ComplexField))
in WithFilters(ComplexField) (created by WithEffects)
in WithEffects (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithDispatch(WithEffects) (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithDispatch(WithDispatch(WithEffects)) (created by WithEffects)
in WithEffects (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithSelect(WithEffects) (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithConditionalLogic(WithDispatch(WithDispatch(WithEffects))) (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithDispatch(WithConditionalLogic(WithDispatch(WithDispatch(WithEffects)))) (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithField(WithConditionalLogic(WithDispatch(WithDispatch(WithEffects)))) (created by WithFilters(WithFilters(ComplexField)))
in WithFilters(WithFilters(ComplexField)) (created by Container)
in div (created by Field)
in div (created by Field)
in Field
in Unknown (created by WithFilters(Field))
in WithFilters(Field) (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithSelect(WithFilters(Field)) (created by WithFilters(WithSelect(WithFilters(Field))))
in WithFilters(WithSelect(WithFilters(Field))) (created by ComponentWithDispatch)
in ComponentWithDispatch (created by Context.Consumer)
in WithDispatch(WithFilters(WithSelect(WithFilters(Field)))) (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithField(WithFilters(WithSelect(WithFilters(Field)))) (created by Container)
in div (created by Container)
in div (created by Container)
in Container (created by WithFilters(Container))
in WithFilters(Container) (created by ComponentWithSelect)
in ComponentWithSelect (created by Context.Consumer)
in WithContainer(WithFilters(Container))

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://fb.me/react-error-boundaries to learn more about error boundaries.
logCapturedError @ react-dom.js?ver=16.8.4:17206
logError @ react-dom.js?ver=16.8.4:17242
update.callback @ react-dom.js?ver=16.8.4:18154
callCallback @ react-dom.js?ver=16.8.4:16522
commitUpdateEffects @ react-dom.js?ver=16.8.4:16561
commitUpdateQueue @ react-dom.js?ver=16.8.4:16549
commitLifeCycles @ react-dom.js?ver=16.8.4:17472
commitAllLifeCycles @ react-dom.js?ver=16.8.4:18825
callCallback @ react-dom.js?ver=16.8.4:143
invokeGuardedCallbackDev @ react-dom.js?ver=16.8.4:193
invokeGuardedCallback @ react-dom.js?ver=16.8.4:250
commitRoot @ react-dom.js?ver=16.8.4:19037
(anonymous) @ react-dom.js?ver=16.8.4:20507
unstable_runWithPriority @ react.js?ver=16.8.4:735
completeRoot @ react-dom.js?ver=16.8.4:20506
performWorkOnRoot @ react-dom.js?ver=16.8.4:20435
performWork @ react-dom.js?ver=16.8.4:20343
performSyncWork @ react-dom.js?ver=16.8.4:20317
interactiveUpdates$1 @ react-dom.js?ver=16.8.4:20584
interactiveUpdates @ react-dom.js?ver=16.8.4:2168
dispatchInteractiveEvent @ react-dom.js?ver=16.8.4:4985
react-dom.js?ver=16.8.4:20401 Uncaught TypeError: Cannot read property 'fields' of undefined
at getFieldsFromFieldsHolder (index.js:41)
at output (index.js:129)
at eval (index.js:66)
at Object.eval [as next] (index.es.js:219)
at eval (readme.js:53)
at eval (VM64436 callbag-distinct-until-changed.es.js:34)
at eval (VM64093 readme.js:48)
at eval (from-selector.js:28)
at data.js?ver=4.4.0:1362
at Array.forEach ()
getFieldsFromFieldsHolder @ index.js:41
output @ index.js:129
(anonymous) @ index.js:66
(anonymous) @ index.es.js:219
(anonymous) @ readme.js:53
(anonymous) @ callbag-distinct-until-changed.es.js:34
(anonymous) @ VM64093 readme.js:48
(anonymous) @ from-selector.js:28
(anonymous) @ data.js?ver=4.4.0:1362
globalListener @ data.js?ver=4.4.0:1361
(anonymous) @ data.js?ver=4.4.0:685
dispatch @ data.js?ver=4.4.0:3467
(anonymous) @ data.js?ver=4.4.0:558
(anonymous) @ data.js?ver=4.4.0:613
(anonymous) @ data.js?ver=4.4.0:778
proxyDispatch @ data.js?ver=4.4.0:2168
(anonymous) @ index.js:125
(anonymous) @ index.es.js:219
(anonymous) @ readme.js:53
(anonymous) @ VM64093 readme.js:48
(anonymous) @ VM64079 readme.js:27
(anonymous) @ VM64079 readme.js:27
(anonymous) @ VM64081 readme.js:31
next @ readme.js:58
(anonymous) @ index.es.js:233
(anonymous) @ index.es.js:232
instance.triggerUnmount @ index.es.js:293
WithEffects.componentWillUnmount @ index.es.js:358
callComponentWillUnmountWithTimer @ react-dom.js?ver=16.8.4:17258
callCallback @ react-dom.js?ver=16.8.4:143
invokeGuardedCallbackDev @ react-dom.js?ver=16.8.4:193
invokeGuardedCallback @ react-dom.js?ver=16.8.4:250
safelyCallComponentWillUnmount @ react-dom.js?ver=16.8.4:17265
commitUnmount @ react-dom.js?ver=16.8.4:17642
commitNestedUnmounts @ react-dom.js?ver=16.8.4:17673
unmountHostComponents @ react-dom.js?ver=16.8.4:17934
commitDeletion @ react-dom.js?ver=16.8.4:17993
commitAllHostEffects @ react-dom.js?ver=16.8.4:18774
callCallback @ react-dom.js?ver=16.8.4:143
invokeGuardedCallbackDev @ react-dom.js?ver=16.8.4:193
invokeGuardedCallback @ react-dom.js?ver=16.8.4:250
commitRoot @ react-dom.js?ver=16.8.4:19002
(anonymous) @ react-dom.js?ver=16.8.4:20507
unstable_runWithPriority @ react.js?ver=16.8.4:735
completeRoot @ react-dom.js?ver=16.8.4:20506
performWorkOnRoot @ react-dom.js?ver=16.8.4:20435
performWork @ react-dom.js?ver=16.8.4:20343
performSyncWork @ react-dom.js?ver=16.8.4:20317
interactiveUpdates$1 @ react-dom.js?ver=16.8.4:20584
interactiveUpdates @ react-dom.js?ver=16.8.4:2168
dispatchInteractiveEvent @ react-dom.js?ver=16.8.4:4985
Show 21 more frames

@iljamm
Copy link
Author

iljamm commented Aug 9, 2019

my wp version is 5.2.2, carbon fields 3.1.3. I tried different sub versions 3, did not help. Tried removing all other plugins just leaving vanilla wp, no use, still errors when deleting a complex field item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant