Skip to content

Commit

Permalink
Better handle selection when in named entities mode
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Jul 28, 2020
1 parent 23fed76 commit 7d1ddbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reader/components/ReaderToken.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
props: ['token'],
methods: {
onSelect() {
if (this.token === this.selectedToken) {
if (this.selected) {
this.$store.dispatch(CLEAR_NAMED_ENTITIES);
this.$store.dispatch(`${MODULE_NS}/${SELECT_TOKEN}`, {
token: null,
Expand Down

0 comments on commit 7d1ddbb

Please sign in to comment.