Et2LinkEntry: Fix value of null caused error

This commit is contained in:
nathan 2022-10-13 10:37:29 -06:00
parent e9a797acce
commit ab07b3dee3

View File

@ -356,7 +356,7 @@ export class Et2LinkEntry extends Et2InputWidget(FormControlMixin(ValidateMixin(
{ {
value.id = String(val); value.id = String(val);
} }
else if(typeof val === "object") // object with attributes: app, id, title else if(typeof val === "object" && val !== null) // object with attributes: app, id, title
{ {
value = (<LinkInfo>val); value = (<LinkInfo>val);
} }