Skip to content

Commit

Permalink
fix(filter): CompoundDate Filter should add a time picker when found 'h'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghislain Beaulac authored and Ghislain Beaulac committed Mar 19, 2018
1 parent d9a091a commit 27dec26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class CompoundDateFilter implements Filter {
};

// add the time picker when format is UTC (Z) or has the 'h' (meaning hours)
if (outputFormat === 'Z' || outputFormat.includes('h')) {
if (outputFormat && (outputFormat === 'Z' || outputFormat.toLowerCase().includes('h'))) {
pickerOptions.enableTime = true;
}

Expand Down

0 comments on commit 27dec26

Please sign in to comment.