mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
21ea72fdc5
useEffect() doesn't run until _after_ the component renders. Before the hook runs, the value of `groups` === []. And this is passed to <DynamicForm>'s `initialValue` prop. The `initialValue` is not re-evaluated after useEffect() completes. So the users groups are never updated. This change pulls the user's current groups from `user` prop on the page. |
||
---|---|---|
.. | ||
__tests__ | ||
assets | ||
components | ||
config | ||
extensions | ||
lib | ||
pages | ||
redash-font | ||
services | ||
styles | ||
.eslintrc.js | ||
index.html | ||
index.js | ||
multi_org.html | ||
unsupported.html | ||
unsupportedRedirect.js | ||
version.json |