Fix date filtering bug in heatmap/calendar and sync selection state

This commit is contained in:
leeyj
2026-04-16 11:27:25 +09:00
parent 175a30325b
commit df8ae62b0e
8 changed files with 75 additions and 4 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ export const API = {
async fetchMemos(filters = {}) {
const { limit = 20, offset = 0, group = 'all', query = '' } = filters;
const params = new URLSearchParams({ limit, offset, group, query });
const date = filters.date || ''; // null이나 undefined를 빈 문자열로 변환
const params = new URLSearchParams({ limit, offset, group, query, date });
return await this.request(`/api/memos?${params.toString()}`);
},
async fetchHeatmapData(days = 365) {