Fix error from "Open Query Results" button#909
Conversation
|
Good catch, this looks sensible! Maybe we should have a query for this kind of pattern (later). |
0b68dc4 to
3bc50d5
Compare
|
Aside: There was another point raised in the bug report:
I agree that the button doesn't add any extra functionality, but I assume it was added for a reason 😄 I guess it makes the command more obvious/discoverable? |
Looking at git blame on that line I think it was added so that we could have UI icons in the query history box for some of the common commands. |
Fixes #906.
The "Open Query Results" button in the query history view currently doesn't work. Error:
Cannot read property 'result' of undefined (codeQLQueryHistory.itemClicked).I experimented a bit with the
handleItemClicked, and it looks like changingsingleItemtofinalSingleItemworks as expected 🙂Checklist
@github/docs-content-codeqlhas been cc'd in all issues for UI or other user-facing changes made by this pull request.