(recording = null, channel = null)
| 91 | : item.name || `Channel ${item.id}`; |
| 92 | |
| 93 | export const getSingleFormDefaults = (recording = null, channel = null) => { |
| 94 | const defaultStart = createRoundedDate(); |
| 95 | const defaultEnd = createRoundedDate(60); |
| 96 | return { |
| 97 | channel_id: recording |
| 98 | ? `${recording.channel}` |
| 99 | : channel |
| 100 | ? `${channel.id}` |
| 101 | : '', |
| 102 | start_time: recording |
| 103 | ? asDate(recording.start_time) || defaultStart |
| 104 | : defaultStart, |
| 105 | end_time: recording ? asDate(recording.end_time) || defaultEnd : defaultEnd, |
| 106 | }; |
| 107 | }; |
| 108 | |
| 109 | export const getRecurringFormDefaults = (channel = null) => { |
| 110 | const defaultStart = createRoundedDate(); |
no test coverage detected