shesha-io / shesha-framework

An open-source Low-Code development framework for .NET developers. Create .NET based business applications with 80% less code.
https://shesha.io
Apache License 2.0
367 stars 66 forks source link

Autocomplete component crashes with array endpoint and query parameter #1748

Open hlayisanimazuze opened 2 months ago

hlayisanimazuze commented 2 months ago

The Autocomplete component crashes when the specified endpoint consists of an array and includes a query parameter

Steps to reproduce the behavior:

  1. Go to 'https://function-adminportal-test.shesha.dev/dynamic/TestModule/test-autocomplete?mode=edit'
  2. From the above URL, click on select bank autocomplete
  3. Select a bank
  4. Afterwards, click on the second 'autocomplete'
  5. Actual Results: The second component crashes because the endpoint consist of array and has a query param, however if you render a getAll of the same endpoint, the component does not crash

Expected behavior The component should not crash

image

hlayisanimazuze commented 2 months ago

After this fix #1423, the query params get passed through to the endpoint as expected, the above error only displays when an endpoint used has an array property within it