@next-core/brick-kit 2.132.0 → 2.132.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.esm.js CHANGED
@@ -9273,15 +9273,19 @@ class Kernel {
9273
9273
 
9274
9274
  _dev_only_updateStoryboardByRoute(appId, newRoute) {
9275
9275
  var storyboard = this.bootstrapData.storyboards.find(item => item.app.id === appId);
9276
+ var match = false;
9277
+
9278
+ var getKey = route => "".concat(route.path, ".").concat(route.exact);
9276
9279
 
9277
9280
  var replaceRoute = (routes, key) => {
9278
9281
  return routes.map(route => {
9279
- var routeKey = route.path;
9282
+ var routeKey = getKey(route);
9280
9283
 
9281
9284
  if (route.type === "routes") {
9282
9285
  route.routes = replaceRoute(route.routes, key);
9283
9286
  return route;
9284
9287
  } else if (routeKey === key) {
9288
+ match = true;
9285
9289
  return newRoute;
9286
9290
  } else {
9287
9291
  return route;
@@ -9289,7 +9293,11 @@ class Kernel {
9289
9293
  });
9290
9294
  };
9291
9295
 
9292
- storyboard.routes = replaceRoute(storyboard.routes, newRoute.path);
9296
+ storyboard.routes = replaceRoute(storyboard.routes, getKey(newRoute));
9297
+
9298
+ if (!match) {
9299
+ storyboard.routes.unshift(newRoute);
9300
+ }
9293
9301
  }
9294
9302
 
9295
9303
  _dev_only_updateStoryboardByTemplate(appId, newTemplate, settings) {