barsa-novin-ray-core 2.3.2 → 2.3.3
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.
|
@@ -2641,6 +2641,9 @@ class DynamicComponentService {
|
|
|
2641
2641
|
const moName = moduleName + 'Module';
|
|
2642
2642
|
const module = this._dynamicModuleWithComponents[moName];
|
|
2643
2643
|
const cmpName = componentName + 'Component';
|
|
2644
|
+
if (!module) {
|
|
2645
|
+
return;
|
|
2646
|
+
}
|
|
2644
2647
|
let x = module.ngModuleRef.dynamicComponents.find((c) => c.name.includes(cmpName));
|
|
2645
2648
|
if (!x) {
|
|
2646
2649
|
module.ngModuleRef.dynamicComponents.forEach((c) => {
|
|
@@ -3952,7 +3955,7 @@ class PortalService {
|
|
|
3952
3955
|
}
|
|
3953
3956
|
// const notFoundPath = configRoute.find((c) => c.path === '**');
|
|
3954
3957
|
// notFoundPath && (notFoundPath.redirectTo = defaultPage.Route.replace('/', ''));
|
|
3955
|
-
this._router.resetConfig(portalData.IsDynamicRoute ? newConfigRoutes : configRoute);
|
|
3958
|
+
this._router.resetConfig(portalData.IsDynamicRoute === 'True' ? newConfigRoutes : configRoute);
|
|
3956
3959
|
}
|
|
3957
3960
|
}
|
|
3958
3961
|
this.extractAllPages(portalData);
|