@arsedizioni/ars-utils 20.0.7 → 20.0.9

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.
@@ -1031,7 +1031,7 @@ declare class ClipperDocumentMenuComponent implements OnInit, OnDestroy {
1031
1031
  private changeDetector;
1032
1032
  private clipperService;
1033
1033
  readonly useSelections: _angular_core.InputSignal<boolean>;
1034
- readonly selectionSource: _angular_core.InputSignal<"none" | "selection" | "bag">;
1034
+ readonly selectionSource: _angular_core.InputSignal<"selection" | "bag" | "none">;
1035
1035
  protected selection: () => ClipperDocumentInfo[];
1036
1036
  readonly parent: _angular_core.InputSignal<ClipperSearchResultManager>;
1037
1037
  readonly item: _angular_core.InputSignal<ClipperDocumentInfo>;
@@ -2153,10 +2153,12 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2153
2153
  const d = this.filterParams.models?.length > 1
2154
2154
  ? n.publishingDate
2155
2155
  : n.date;
2156
- const year = SystemUtils.formatDate(d, DateFormat.LongMonthAndYear).toLowerCase();
2157
- if (group !== year) {
2158
- n.group = year;
2159
- group = year;
2156
+ if (d) {
2157
+ const year = SystemUtils.formatDate(d, DateFormat.LongMonthAndYear)?.toLowerCase();
2158
+ if (group !== year) {
2159
+ n.group = year;
2160
+ group = year;
2161
+ }
2160
2162
  }
2161
2163
  }
2162
2164
  else if (groupByRelevance) {