Skip to content

Commit 38f6ce2

Browse files
committed
fixing bug
1 parent 17ed60f commit 38f6ce2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/common/services/utils/utils.service.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,10 @@ export class UtilsService {
254254
}
255255

256256
datesStringToStringArray(value: string): string[] {
257-
return value.split(',').map(m => m.trim());
257+
return (value || '').split(',').map(m => m.trim());
258258
}
259259

260-
getValidMomentArray(value: string,
261-
format: string): Moment[] {
260+
getValidMomentArray(value: string, format: string): Moment[] {
262261
return this.datesStringToStringArray(value)
263262
.filter(d => this.isDateValid(d, format))
264263
.map(d => moment(d, format));

0 commit comments

Comments
 (0)