@followupus/common 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/shared/shared.js +2 -2
- package/package.json +1 -1
package/dist/shared/shared.js
CHANGED
|
@@ -148,7 +148,7 @@ export const getDateGroupKey = (dateStr) => {
|
|
|
148
148
|
if (day.isAfter(endDayOfThisWeek, "date") &&
|
|
149
149
|
(day.isBefore(endDayOfNextWeek, "date") ||
|
|
150
150
|
day.isSame(endDayOfNextWeek, "date"))) {
|
|
151
|
-
return DATE_GROUPS.
|
|
151
|
+
return DATE_GROUPS.NEXT_WEEK;
|
|
152
152
|
}
|
|
153
153
|
const endDayOfThisMonth = current.set("date", current.daysInMonth());
|
|
154
154
|
if (day.isBefore(endDayOfThisMonth, "date") ||
|
|
@@ -398,7 +398,7 @@ export const filterItemsByConditions = (groups, filter, headers) => {
|
|
|
398
398
|
return groups;
|
|
399
399
|
};
|
|
400
400
|
export const filterBoardTree = (board, filter) => {
|
|
401
|
-
if (!board
|
|
401
|
+
if (!board?.groups?.length || !board?.headers?.length || !filter)
|
|
402
402
|
return board;
|
|
403
403
|
return {
|
|
404
404
|
...board,
|