From 7d1ddbbdd262031c99bef3525c4f6703b375237f Mon Sep 17 00:00:00 2001 From: Patrick Altman Date: Tue, 28 Jul 2020 14:43:43 -0500 Subject: [PATCH] Better handle selection when in named entities mode --- src/reader/components/ReaderToken.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader/components/ReaderToken.vue b/src/reader/components/ReaderToken.vue index cffff9a..75a5650 100644 --- a/src/reader/components/ReaderToken.vue +++ b/src/reader/components/ReaderToken.vue @@ -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,