ukrbublik / react-awesome-query-builder

User-friendly query builder for React
https://ukrbublik.github.io/react-awesome-query-builder
MIT License
2.02k stars 504 forks source link

Arguments of func visually not selected after tree loaded #1085

Closed ToxesFoxes closed 4 months ago

ToxesFoxes commented 4 months ago

Describe the bug The selected function as value is not displaying inside function after tree was loaded. After exporting tree - everything was okay, but after importing same object - first argument (select) visually unselected

To Reproduce I created sandbox with this issue: https://codesandbox.io/p/sandbox/raqb-func-issue-plcj6k 1) Click "Load exported tree from obj" button 2) Bug appeared in first argument of function 3) Try to change first argument manually to any 4) Click "Log to console" button and replace in source code var obj with console exported tree 5) Try again loading tree

Expected behavior The selected function should be visible as selected value in select component

Screenshots Expected: image

After tree loading: image

ukrbublik commented 4 months ago

Thanks!

ToxesFoxes commented 4 months ago

Thanks for fix 👍🏻 It works 🔥