@ray-js/lamp-schedule-core 1.0.4-beta-11 → 1.0.4-beta-12

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.
@@ -63,8 +63,10 @@ export class ScheduleDataManager {
63
63
  }
64
64
  const idsToAdd = new Set(itemsMap.keys());
65
65
  const filteredList = ScheduleDataManager.list.filter(item => !idsToAdd.has(item.id));
66
- ScheduleDataManager.list = [...filteredList, ...itemsMap.values()];
67
- scheduleLogger.debug('ScheduleDataManager.setData post', ScheduleDataManager.list);
66
+ ScheduleDataManager.list = [...filteredList, ...itemsMap.values()].filter(item => {
67
+ var _item$data;
68
+ return (item === null || item === void 0 || (_item$data = item.data) === null || _item$data === void 0 ? void 0 : _item$data.status) === true;
69
+ });
68
70
  }
69
71
  clearData() {
70
72
  scheduleLogger.debug('ScheduleDataManager.clearData pre', ScheduleDataManager.list);
@@ -265,6 +265,6 @@ export const transScheduleListToConflictList = foldScheduleList => {
265
265
  if ((item === null || item === void 0 || (_item$data = item.data) === null || _item$data === void 0 ? void 0 : _item$data.status) === undefined) {
266
266
  scheduleLogger.error('transScheduleListToConflictList', item, 'status 为 undefined');
267
267
  }
268
- return (item === null || item === void 0 || (_item$data2 = item.data) === null || _item$data2 === void 0 ? void 0 : _item$data2.status) === true;
268
+ return (item === null || item === void 0 || (_item$data2 = item.data) === null || _item$data2 === void 0 ? void 0 : _item$data2.status) !== undefined;
269
269
  });
270
270
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lamp-schedule-core",
3
- "version": "1.0.4-beta-11",
3
+ "version": "1.0.4-beta-12",
4
4
  "description": "照明计划模块核心能力",
5
5
  "main": "./lib/index.js",
6
6
  "files": [