diff options
| author | Thomas Haddad | 2017-04-26 14:39:34 +0200 |
|---|---|---|
| committer | Thomas Haddad | 2017-04-26 14:39:34 +0200 |
| commit | 6dde8056e94515f885c73ecf1a07485784eaaca6 (patch) | |
| tree | 1a0b4c7c03e6097ebba4b170ea1ae438258797e0 | |
| parent | 40a5ec091c90e145df6a1199a05777adf83d1596 (diff) | |
| download | chouette-core-6dde8056e94515f885c73ecf1a07485784eaaca6.tar.bz2 | |
Refs #2899: Add separator between each day_type
Signed-off-by: Thomas Shawarma Haddad <thomas.haddad@af83.com>
| -rw-r--r-- | app/assets/javascripts/es6_browserified/time_tables/actions/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/es6_browserified/time_tables/actions/index.js b/app/assets/javascripts/es6_browserified/time_tables/actions/index.js index 4ed34e4a8..cef9bc75d 100644 --- a/app/assets/javascripts/es6_browserified/time_tables/actions/index.js +++ b/app/assets/javascripts/es6_browserified/time_tables/actions/index.js @@ -7,13 +7,13 @@ const actions = { }, arrayToStrDayTypes: (arr) => { let weekDays = ['Di', 'Lu', 'Ma', 'Me', 'Je', 'Ve', 'Sa'] - let str = '' + let str = [] arr.map((dayActive, i) => { if(dayActive){ - str += weekDays[i] + str.push(weekDays[i]) } }) - return str + return str.join(',') }, fetchingApi: () =>({ type: 'FETCH_API' |
