Skip to content

Commit

Permalink
fix: Avoid access on null value from NcTextField
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Feb 8, 2024
1 parent 03bf7f1 commit bf27043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Menu/ActionInsertLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default {
],
data: () => {
return {
href: null,
href: '',
isInputMode: false,
startPath: null,
/** Open state of the actions menu */
Expand Down Expand Up @@ -168,7 +168,7 @@ export default {
const href = [...event.target.elements].filter(e => e?.type === 'text')[0].value
this.menuOpen = false
this.isInputMode = false
this.href = null
this.href = ''
return this.setLink(href, href)
}

Expand Down

0 comments on commit bf27043

Please sign in to comment.