mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: WrappedValue.unwrap empty string behavior (#6900)
This commit is contained in:
committed by
Manol Donev
parent
3c2c1d9b69
commit
0482460c09
@@ -13,7 +13,7 @@ export class WrappedValue implements WrappedValueDefinition {
|
||||
}
|
||||
|
||||
public static unwrap(value: any) {
|
||||
return (value && value.wrapped) ? value.wrapped : value;
|
||||
return (value instanceof WrappedValue) ? value.wrapped : value;
|
||||
}
|
||||
|
||||
public static wrap(value: any) {
|
||||
@@ -249,4 +249,4 @@ export function fromObjectRecursive(source: any): Observable {
|
||||
let observable = new ObservableFromObject();
|
||||
addPropertiesFromObject(observable, source, true);
|
||||
return observable;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user