mirror of
https://github.com/infinilabs/coco-app.git
synced 2026-02-24 04:01:27 +01:00
fix: fix some filter fields not working (#1037)
* fix: fix some filter fields not working * docs: update changelog
This commit is contained in:
@@ -21,6 +21,7 @@ Information about release notes of Coco App is provided here.
|
||||
- fix: avoid recentering when resizing to compact after leaving extension #1030
|
||||
- fix: fix incorrect window position after hiding #1034
|
||||
- fix: fix arrow keys not working after closing the context menu #1035
|
||||
- fix: fix some filter fields not working #1037
|
||||
- fix: apply local results weight to scores generated by rerank() #1036
|
||||
|
||||
### ✈️ Improvements
|
||||
|
||||
@@ -432,11 +432,15 @@ export const getQueryStrings = (queryStrings: Record<string, string>) => {
|
||||
const { from, to } = filterDateRange;
|
||||
|
||||
if (from) {
|
||||
nextQueryStrings["update_time_start"] = dayjs(from).startOf('day').format('YYYY-MM-DD[T]HH:mm:ss.SSSZ');
|
||||
nextQueryStrings["update_time_start"] = dayjs(from)
|
||||
.startOf("day")
|
||||
.format("YYYY-MM-DD[T]HH:mm:ss.SSSZ");
|
||||
}
|
||||
|
||||
if (to) {
|
||||
nextQueryStrings["update_time_end"] = dayjs(to).endOf('day').format('YYYY-MM-DD[T]HH:mm:ss.SSSZ');
|
||||
nextQueryStrings["update_time_end"] = dayjs(to)
|
||||
.endOf("day")
|
||||
.format("YYYY-MM-DD[T]HH:mm:ss.SSSZ");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -446,7 +450,7 @@ export const getQueryStrings = (queryStrings: Record<string, string>) => {
|
||||
|
||||
const result = value.map((item) => item.key).join(",");
|
||||
|
||||
queryStrings[key] = `any(${result})`;
|
||||
nextQueryStrings[key] = `any(${result})`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user