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 72dbd0d commit 0decd66Copy full SHA for 0decd66
source/renderer/app/api/api.ts
@@ -465,12 +465,12 @@ export default class AdaApi {
465
{},
466
{
467
order: order || 'descending',
468
- ...(fromDate
469
- ? { start: `${moment.utc(fromDate).format('YYYY-MM-DDTHH:mm:ss')}Z` }
470
- : {}),
471
- ...(toDate
472
- ? { end: `${moment.utc(toDate).format('YYYY-MM-DDTHH:mm:ss')}Z` }
473
+ },
+ !!fromDate && {
+ start: `${moment.utc(fromDate).format('YYYY-MM-DDTHH:mm:ss')}Z`,
+ !!toDate && {
+ end: `${moment.utc(toDate).format('YYYY-MM-DDTHH:mm:ss')}Z`,
474
}
475
);
476
0 commit comments