diff --git a/panel/src/components/Forms/Field/LinkField.vue b/panel/src/components/Forms/Field/LinkField.vue index 5f694d00bd..4a18cfd3e6 100644 --- a/panel/src/components/Forms/Field/LinkField.vue +++ b/panel/src/components/Forms/Field/LinkField.vue @@ -144,8 +144,8 @@ export default { } const parts = this.$helper.link.detect(value, this.activeTypes); - this.linkType = this.linkType ?? parts.type; - this.linkValue = parts.link; + this.linkType = this.linkType ?? parts?.type; + this.linkValue = parts?.link ?? value; }, immediate: true }