ywana-core8 0.0.949 → 0.0.950

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/index.cjs CHANGED
@@ -5909,7 +5909,16 @@ var Planner2 = function Planner2(_ref) {
5909
5909
  var laneEvents = events.filter(function (event) {
5910
5910
  return event.lane === lane.id;
5911
5911
  });
5912
- if (hideEmptyRows && laneEvents.length === 0) return null;
5912
+ if (hideEmptyRows) {
5913
+ // find days with event for this lane
5914
+ var daysWithEvents = laneEvents.map(function (event) {
5915
+ var eventDate = new Date(event.date);
5916
+ return eventDate.getFullYear() + "-" + (eventDate.getMonth() + 1) + "-" + eventDate.getDate();
5917
+ });
5918
+ if (daysWithEvents.length === 0) {
5919
+ return null;
5920
+ }
5921
+ }
5913
5922
  return /*#__PURE__*/React__default["default"].createElement("div", {
5914
5923
  className: "content-row " + lane.className,
5915
5924
  style: {