@dsivd/prestations-ng 19.0.5-beta.1 → 19.0.5-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -833,7 +833,9 @@ class FoehnInputComponent {
|
|
|
833
833
|
}
|
|
834
834
|
patchModel(patch) {
|
|
835
835
|
this.model.update((current) => {
|
|
836
|
-
if (current &&
|
|
836
|
+
if (current &&
|
|
837
|
+
typeof current === 'object' &&
|
|
838
|
+
!Array.isArray(current)) {
|
|
837
839
|
return { ...current, ...patch };
|
|
838
840
|
}
|
|
839
841
|
throw new Error('patchModel can only be used with object models.');
|