@myclub_se/data-access 2.15.0 → 2.15.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.
- package/esm2020/lib/api-models/api-member/api-member-attribute.mjs +1 -1
- package/esm2020/lib/models/member/member-attribute.mjs +2 -2
- package/esm2020/lib/models/news.mjs +3 -3
- package/fesm2015/myclub_se-data-access.mjs +3 -3
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +3 -3
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-member/api-member-attribute.d.ts +1 -1
- package/lib/models/member/member-attribute.d.ts +3 -3
- package/package.json +1 -1
|
@@ -1256,7 +1256,7 @@ class MemberAttribute {
|
|
|
1256
1256
|
name: new FormControl(attribute?.name || ''),
|
|
1257
1257
|
options: attributeOptions,
|
|
1258
1258
|
type: new FormControl(attribute?.type || 'text'),
|
|
1259
|
-
value: new FormControl(attribute?.type === 'bool' ? attribute?.value : attribute?.value || '')
|
|
1259
|
+
value: new FormControl(attribute?.type === 'bool' ? attribute?.value : (attribute?.type === 'date' ? attribute?.value || undefined : attribute?.value || ''))
|
|
1260
1260
|
});
|
|
1261
1261
|
}
|
|
1262
1262
|
}
|
|
@@ -1506,11 +1506,11 @@ class News {
|
|
|
1506
1506
|
}
|
|
1507
1507
|
return new FormGroup({
|
|
1508
1508
|
id: new FormControl(news?.id || ''),
|
|
1509
|
-
active_to: new FormControl(news?.active_to ||
|
|
1509
|
+
active_to: new FormControl(news?.active_to || undefined),
|
|
1510
1510
|
ingress: new FormControl(news?.ingress || '', [Validators.required, Validators.minLength(1)]),
|
|
1511
1511
|
news_image: new FormControl(news?.news_image || ''),
|
|
1512
1512
|
news_image_text: new FormControl(news?.news_image_text || ''),
|
|
1513
|
-
published_date: new FormControl(news?.published_date ||
|
|
1513
|
+
published_date: new FormControl(news?.published_date || undefined),
|
|
1514
1514
|
show_on_my_pages: new FormControl(show_on_my_pages),
|
|
1515
1515
|
show_on_webpage: new FormControl(show_on_webpage),
|
|
1516
1516
|
text: new FormControl(news?.text || '', [Validators.required, Validators.minLength(1)]),
|