react-router 0.0.0-experimental-acfea932 → 0.0.0-experimental-3ba3024e

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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * React Router v0.0.0-experimental-acfea932
2
+ * React Router v0.0.0-experimental-3ba3024e
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -555,7 +555,7 @@ function _renderMatches(matches, parentMatches, dataRouterState, future) {
555
555
  // If we have data errors, trim matches to the highest error boundary
556
556
  let errors = (_dataRouterState2 = dataRouterState) == null ? void 0 : _dataRouterState2.errors;
557
557
  if (errors != null) {
558
- let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]));
558
+ let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]) !== undefined);
559
559
  !(errorIndex >= 0) ? process.env.NODE_ENV !== "production" ? UNSAFE_invariant(false, "Could not find a matching route for errors on route IDs: " + Object.keys(errors).join(",")) : UNSAFE_invariant(false) : void 0;
560
560
  renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));
561
561
  }