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

array mode does not work anymore in 6.2.0 #923

Closed
StephanDecker opened this issue May 22, 2023 · 2 comments · Fixed by #944
Closed

array mode does not work anymore in 6.2.0 #923

StephanDecker opened this issue May 22, 2023 · 2 comments · Fixed by #944

Comments

@StephanDecker
Copy link

StephanDecker commented May 22, 2023

Set the count property in the array mode and the following error appears (see also Cars example in https://ukrbublik.github.io/react-awesome-query-builder/)
The error message is shown in the dev console (right on the screenshot or below)

image

react-dom.production.min.js:101 Uncaught TypeError: Cannot read properties of undefined (reading 'treeValues')
    at Me (validation.js:308:38)
    at xe (validation.js:227:34)
    at x (ruleUtils.js:87:43)
    at $e (ruleUtils.js:79:51)
    at tree.js:449:81
    at Ae.withMutations (immutable.js:1353:7)
    at tree.js:442:75
    at it (immutable.js:1971:22)
    at it (immutable.js:1980:23)
    at it (immutable.js:1980:23)
@ukrbublik
Copy link
Owner

Thanks for the report.
Will be fixed in new version

ukrbublik added a commit that referenced this issue Jul 5, 2023
ukrbublik added a commit that referenced this issue Jul 5, 2023
@ukrbublik ukrbublik linked a pull request Jul 6, 2023 that will close this issue
ukrbublik added a commit that referenced this issue Jul 6, 2023
* test #923

* fix

* chlog

* allow npm publish from branch
@ukrbublik
Copy link
Owner

Fixed in 6.3.0

ukrbublik added a commit that referenced this issue Jul 21, 2023
* LHS rhallerman1 #896 deformatted

* fix lint & test

* .

* fix

* fix sh

* renderFieldSources for all ui

* remove valueSources from func root

* restore

* wip

* seamless change func to compatible one

* fix

* highlight fields/funcs matching fieldType

* fieldSourcesPopupTitle

* fix #929

* mui vs

* wip import from jl/spel

* ref

* support now()

* .

* ctor args

* spelImport, spelFunc

* spelImportFuncs, spelImportValue for func -> value

* datetime spel works perfectly

* getFieldParts, getFieldPath

* ' actionmate

* support funcs for mongo, sql, es, string

* fix tests

* lint fix

* chlog, readme

* test #923

* fix #929

* nit

* freeze config, isFieldDescendantOfField

* lint and test fix

* fix for #949

* fix fieldNane #609

* isOptional, defaultValue

* .

* optimize render;   todo:  filter edge cases?

* remove fieldSrc from funcs

* fix logs

* test "change field source to func, and vice versa"

* css fixes

* nit

* fix del group ext

* lint-fix
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

Successfully merging a pull request may close this issue.

2 participants