Skip to content

Conversation

@se7entyse7en
Copy link
Contributor

Closes #402.

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.
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>
@se7entyse7en se7entyse7en requested a review from smacker April 18, 2019 16:08
@se7entyse7en se7entyse7en assigned carlosms and unassigned carlosms Apr 18, 2019
@se7entyse7en se7entyse7en requested a review from carlosms April 18, 2019 16:08
Copy link
Contributor

@carlosms carlosms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch

@se7entyse7en se7entyse7en merged commit 8582449 into src-d:master Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants