redash/client/app
Jesse 21ea72fdc5
Get the user's current groups from props instead of useEffect(). (#5450)
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.
2021-03-31 16:18:59 +03:00
..
__tests__ Prettier all the Javascript code & GitHub Action (#4433) 2019-12-11 17:05:38 +02:00
assets Query Runner: eccenca Corporate Memory (SPARQL) - query RDF / Linked Data Knowledge Graphs with redash (#5415) 2021-03-24 00:15:24 -07:00
components Embed "external" link type into <Link> component (#5432) 2021-03-26 15:24:07 -03:00
config Improve icon a11y (#5424) 2021-03-22 19:49:36 -03:00
extensions Add missing default "extensions" directory (webpack fails to build without it) (#2952) 2018-10-15 13:51:13 +02:00
lib Improve icon a11y (#5424) 2021-03-22 19:49:36 -03:00
pages Get the user's current groups from props instead of useEffect(). (#5450) 2021-03-31 16:18:59 +03:00
redash-font Fix duplicate stylesheets (#5396) 2021-02-14 22:16:06 +02:00
services Improve icon a11y (#5424) 2021-03-22 19:49:36 -03:00
styles Update Organization Settings (#5114) 2020-08-19 13:09:28 +03:00
.eslintrc.js Prettier all the Javascript code & GitHub Action (#4433) 2019-12-11 17:05:38 +02:00
index.html Frontend updates from internal fork (#5209) 2020-10-15 14:25:22 -03:00
index.js Dynamically register frontend routes (#4998) 2020-06-25 13:38:23 +03:00
multi_org.html Frontend updates from internal fork (#5209) 2020-10-15 14:25:22 -03:00
unsupported.html Browser support config (#3609) 2019-03-27 17:47:12 +02:00
unsupportedRedirect.js Prettier all the Javascript code & GitHub Action (#4433) 2019-12-11 17:05:38 +02:00
version.json Display frontend version (#3105) 2018-11-29 14:24:23 +02:00