tuain-ng-forms-lib 15.1.0 → 15.1.1

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.
@@ -2730,7 +2730,7 @@ class LibEventManagerService {
2730
2730
  const { name, type, initialValue, windowTime, timestampProvider } = eventObject;
2731
2731
  const currentSubject = this.eventSubjects[name];
2732
2732
  if (rebuild || !currentSubject) {
2733
- if (type === 'beahavior') {
2733
+ if (type === 'behaviour') {
2734
2734
  const newEventSubject = new BehaviorSubject(initialValue);
2735
2735
  this.eventSubjects[name] = newEventSubject;
2736
2736
  }
@@ -3030,7 +3030,7 @@ class BasicFormComponent extends FormStructureAndData {
3030
3030
  return stateChanged;
3031
3031
  }
3032
3032
  checkErrorRecordReceived(recordResponse) {
3033
- const { error } = recordResponse;
3033
+ const { error } = recordResponse ?? {};
3034
3034
  if (!error) {
3035
3035
  return false;
3036
3036
  }