You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What you were expecting:
ReferenceArrayInput is not working fine on v3 beta.3. It's failing on a line with a FIXME comment on ra-core/esm/controller/input/useReferenceArrayInputController.js file
varreferenceBasePath=basePath.replace(resource,reference);// FIXME obviously very weak
What happened instead:
It's not rendering at all.
Steps to reproduce:
Just add a filter including a ReferenceArrayInput to a List and run it.
Last version that did not exhibit the issue (if applicable):
React version: v16.10.2
Browser: Google Chrome 77.0.3865.120 (Official Build) (64-bit)
Stack trace (in case of a JS error):
Uncaught TypeError: Cannotreadproperty'replace'ofundefinedatuseReferenceArrayInputController(useReferenceArrayInputController.js:136)atReferenceArrayInput(ReferenceArrayInput.js:257)atrenderWithHooks(react-dom.development.js:16367)atmountIndeterminateComponent(react-dom.development.js:18731)atbeginWork$1(react-dom.development.js:20061)atHTMLUnknownElement.callCallback(react-dom.development.js:363)atObject.invokeGuardedCallbackDev(react-dom.development.js:412)atinvokeGuardedCallback(react-dom.development.js:465)atbeginWork$$1(react-dom.development.js:25711)atperformUnitOfWork(react-dom.development.js:24616)atworkLoopSync(react-dom.development.js:24592)atperformSyncWorkOnRoot(react-dom.development.js:24153)atreact-dom.development.js:12313atunstable_runWithPriority(scheduler.development.js:818)atrunWithPriority$2(react-dom.development.js:12259)atflushSyncCallbackQueueImpl(react-dom.development.js:12308)atflushSyncCallbackQueue(react-dom.development.js:12296)atdiscreteUpdates$1(react-dom.development.js:24334)atdiscreteUpdates(react-dom.development.js:1485)atdispatchDiscreteEvent(react-dom.development.js:5949)useReferenceArrayInputController @ useReferenceArrayInputController.js:136ReferenceArrayInput @ ReferenceArrayInput.js:257renderWithHooks @ react-dom.development.js:16367mountIndeterminateComponent @ react-dom.development.js:18731beginWork$1 @ react-dom.development.js:20061callCallback @ react-dom.development.js:363invokeGuardedCallbackDev @ react-dom.development.js:412invokeGuardedCallback @ react-dom.development.js:465beginWork$$1 @ react-dom.development.js:25711performUnitOfWork @ react-dom.development.js:24616workLoopSync @ react-dom.development.js:24592performSyncWorkOnRoot @ react-dom.development.js:24153(anonymous) @ react-dom.development.js:12313unstable_runWithPriority @ scheduler.development.js:818runWithPriority$2 @ react-dom.development.js:12259flushSyncCallbackQueueImpl @ react-dom.development.js:12308flushSyncCallbackQueue @ react-dom.development.js:12296discreteUpdates$1 @ react-dom.development.js:24334discreteUpdates @ react-dom.development.js:1485dispatchDiscreteEvent @ react-dom.development.js:5949index.js:1375Theaboveerroroccurredinthe<ReferenceArrayInput> component:
in ReferenceArrayInput (created by Field)
in Field (created by FilterFormInput)
in div (created by FilterFormInput)
in FilterFormInput (created by FilterForm)
in form (created by FilterForm)
in FilterForm (created by ReactFinalForm)
in ReactFinalForm (created by EnhancedFilterForm)
in EnhancedFilterForm (created by Filter)
in Filter (at TemplatesList.js:18)
in TemplatesFilter (at TemplatesList.js:29)
in div (created by ForwardRef(Toolbar))
in ForwardRef(Toolbar) (created by WithStyles(ForwardRef(Toolbar)))
in WithStyles(ForwardRef(Toolbar)) (created by ListToolbar)
in ListToolbar (created by ListView)
in div (created by ListView)
in ListView (created by List)
in List (at TemplatesList.js:27)
in TemplatesList (created by WithPermissions)
in WithPermissions (created by Context.Consumer)
in Route (created by ResourceRoutes)
in Switch (created by ResourceRoutes)
in ResourceRoutes (created by Resource)
in Resource (at App.js:72)
in Route (created by RoutesWithLayout)
in Switch (created by RoutesWithLayout)
in RoutesWithLayout (created by Context.Consumer)
in div (created by Layout)
in main (created by Layout)
in div (created by Layout)
in div (created by Layout)
in Layout (created by WithStyles(Layout))
in WithStyles(Layout) (created by Context.Consumer)
in withRouter(WithStyles(Layout)) (created by ConnectFunction)
in ConnectFunction (created by LayoutWithTheme)
in ThemeProvider (created by LayoutWithTheme)
in LayoutWithTheme (at Layout.js:12)
in Unknown (created by Context.Consumer)
in Route (created by CoreAdminRouter)
in Switch (created by CoreAdminRouter)
in div (created by CoreAdminRouter)
in CoreAdminRouter (created by Context.Consumer)
in Route (created by CoreAdmin)
in Switch (created by CoreAdmin)
in Router (created by ConnectedRouter)
in ConnectedRouter (created by Context.Consumer)
in ConnectedRouterWithContext (created by ConnectFunction)
in ConnectFunction (created by CoreAdmin)
in TranslationProvider (created by CoreAdmin)
in Provider (created by CoreAdmin)
in CoreAdmin (at App.js:41)
in App (at src/index.js:8)
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. If you are able to illustrate the bug or feature request with an example, please provide a sample application via one of the following means:
What you were expecting:
ReferenceArrayInput is not working fine on v3 beta.3. It's failing on a line with a FIXME comment on
ra-core/esm/controller/input/useReferenceArrayInputController.js
fileWhat happened instead:
It's not rendering at all.
Steps to reproduce:
Just add a filter including a ReferenceArrayInput to a List and run it.
Related code:
Environment
The text was updated successfully, but these errors were encountered: