Skip to content

Commit

Permalink
Revert "Adjust watcher in Analyze.vue"
Browse files Browse the repository at this point in the history
This reverts commit ed85fcf.
  • Loading branch information
stefandesu committed Aug 21, 2023
1 parent de0247c commit 5075aee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Analyze.vue
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ export default {
)
// fetch concept info when results changed
watch(
() => [results.value?.[0]?.uri, language.value],
async ([after], [before]) => {
if (!results.value || before === after) {
() => [results.value, language.value],
async ([results]) => {
if (!results) {
return
}
for (let result of results.value) {
for (let result of results) {
const [concept] = await store.loadConcepts([].concat(result, result.memberList.filter(Boolean)))
// Integrate loaded concept in result
if (jskos.compare(result, concept)) {
Expand Down

0 comments on commit 5075aee

Please sign in to comment.