mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 12:51:52 +02:00
null and undefined are objects too
fixes TypeError: Cannot read properties of null (reading 'length')
This commit is contained in:
parent
7d86d69b49
commit
a50fa29419
@ -369,7 +369,7 @@ const Et2InputWidgetMixin = <T extends Constructor<LitElement>>(superclass : T)
|
|||||||
{
|
{
|
||||||
return this.readonly || this.disabled ? null : (
|
return this.readonly || this.disabled ? null : (
|
||||||
// Give a clone of objects or receiver might use the reference
|
// Give a clone of objects or receiver might use the reference
|
||||||
typeof this.value == "object" ? (typeof this.value.length == "undefined" ? {...this.value} : [...this.value]) : this.value
|
this.value && typeof this.value == "object" ? (typeof this.value.length == "undefined" ? {...this.value} : [...this.value]) : this.value
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user