@arsedizioni/ars-utils 21.1.96 → 21.1.98

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.
@@ -475,7 +475,7 @@ class DialogService extends UIService {
475
475
  if (id) {
476
476
  const p = this.popHistory.findIndex((n) => n.id === id);
477
477
  if (p != -1) {
478
- popped = this.popHistory[p].value - history.state.index;
478
+ popped = this.popHistory[p].value - (history.state?.index ?? 0);
479
479
  if (popped)
480
480
  popped++;
481
481
  else