Commit 6271723
committed
Fixed initialization of
There are two problems:
1. `UASTViewerPane` checks only for `flatUast` and not
`initialFlatUast`. This means that it can work only when the
`uast-viewer` is used in *controlled mode*. This has been fixed by
checking `flatUast` first and then fallback to `initialFlatUast`.
2. `UASTViewer` component needs to be in *uncontrolled mode*, so it
needs to use `initialFlatUast`. This has ben fixed by renaming
`flatUast` into `initialFlatUast`.
Signed-off-by: Lou Marvin Caraig <loumarvincaraig@gmail.com>UASTViewer
1 parent 38074aa commit 6271723
2 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
0 commit comments