gantt-lib 0.23.0 → 0.23.1

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.js CHANGED
@@ -5257,7 +5257,9 @@ var GanttChart = (0, import_react13.forwardRef)(({
5257
5257
  });
5258
5258
  }, []);
5259
5259
  const allParentIds = (0, import_react13.useMemo)(() => {
5260
- return new Set(normalizedTasks.filter((t) => t.parentId).map((t) => t.parentId).filter((id) => id));
5260
+ return new Set(
5261
+ normalizedTasks.filter((t) => isTaskParent(t.id, normalizedTasks)).map((t) => t.id)
5262
+ );
5261
5263
  }, [normalizedTasks]);
5262
5264
  const handleCollapseAll = (0, import_react13.useCallback)(() => {
5263
5265
  if (externalCollapsedParentIds) return;