Fix unable to save cleared link value

This commit is contained in:
nathan 2023-12-05 08:58:41 -07:00
parent 8de012795e
commit 1e4435fb3a

View File

@ -340,7 +340,7 @@ export class Et2LinkEntry extends Et2InputWidget(FormControlMixin(SlotMixin(LitE
{ {
if(this.onlyApp) if(this.onlyApp)
{ {
return <string>this._searchNode?.value; return <string>this._searchNode?.value ?? "";
} }
return this._searchNode ? <LinkInfo>{ return this._searchNode ? <LinkInfo>{
id: this._searchNode.value, id: this._searchNode.value,