Browse Source

feat(nocodb): convert if comparison_sub_op is not null

pull/5185/head
Wing-Kam Wong 2 years ago
parent
commit
2bc221f4d0
  1. 2
      packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts

2
packages/nocodb/src/lib/db/sql-data-mapper/lib/sql/conditionV2.ts

@ -347,7 +347,7 @@ const parseConditionV2 = async (
break; break;
} }
if (convertDayJsObjToStr) { if (filter.comparison_sub_op && convertDayJsObjToStr) {
// turn `val` in dayjs object format to string // turn `val` in dayjs object format to string
val = val.format(dateFormat).toString(); val = val.format(dateFormat).toString();
// keep YYYY-MM-DD only for date // keep YYYY-MM-DD only for date

Loading…
Cancel
Save