perspective filters supports lookup

This commit is contained in:
Jan Prochazka
2022-08-06 13:24:51 +02:00
parent ae6c486db5
commit c6dbb31748
8 changed files with 47 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ import moment from 'moment';
export type FilterMultipleValuesMode = 'is' | 'is_not' | 'contains' | 'begins' | 'ends';
export function getFilterValueExpression(value, dataType) {
export function getFilterValueExpression(value, dataType?) {
if (value == null) return 'NULL';
if (isTypeDateTime(dataType)) return moment(value).format('YYYY-MM-DD HH:mm:ss');
if (value === true) return 'TRUE';