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.umd.js CHANGED
@@ -5902,7 +5902,16 @@
5902
5902
  var laneEvents = events.filter(function (event) {
5903
5903
  return event.lane === lane.id;
5904
5904
  });
5905
- if (hideEmptyRows && laneEvents.length === 0) return null;
5905
+ if (hideEmptyRows) {
5906
+ // find days with event for this lane
5907
+ var daysWithEvents = laneEvents.map(function (event) {
5908
+ var eventDate = new Date(event.date);
5909
+ return eventDate.getFullYear() + "-" + (eventDate.getMonth() + 1) + "-" + eventDate.getDate();
5910
+ });
5911
+ if (daysWithEvents.length === 0) {
5912
+ return null;
5913
+ }
5914
+ }
5906
5915
  return /*#__PURE__*/React__default["default"].createElement("div", {
5907
5916
  className: "content-row " + lane.className,
5908
5917
  style: {