We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17ed60f commit 38f6ce2Copy full SHA for 38f6ce2
src/app/common/services/utils/utils.service.ts
@@ -254,11 +254,10 @@ export class UtilsService {
254
}
255
256
datesStringToStringArray(value: string): string[] {
257
- return value.split(',').map(m => m.trim());
+ return (value || '').split(',').map(m => m.trim());
258
259
260
- getValidMomentArray(value: string,
261
- format: string): Moment[] {
+ getValidMomentArray(value: string, format: string): Moment[] {
262
return this.datesStringToStringArray(value)
263
.filter(d => this.isDateValid(d, format))
264
.map(d => moment(d, format));
0 commit comments