Skip to content

Commit

Permalink
fix(NcRichText): discard reference widgets on text update
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Aug 23, 2024
1 parent 0d97350 commit ec0565c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/NcRichText/NcReferenceList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ export default {
fetch() {
this.loading = true
if (this.referenceData) {
this.references = null
this.loading = false
return
}
if (!(new RegExp(URL_PATTERN).exec(this.text))) {
this.references = null
this.loading = false
return
}
Expand Down

0 comments on commit ec0565c

Please sign in to comment.