Skip to content

Commit

Permalink
route null fix (SAP#2064)
Browse files Browse the repository at this point in the history
  • Loading branch information
munikumar604 authored Jun 7, 2021
1 parent 9dd2bc5 commit 0042e27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/navigation/services/navigation.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// Main methods used to display and handle the navigation.
// Please consider adding any new methods to 'navigation-helpers' if they don't require anything from this file.

import {
AsyncHelpers,
EscapingHelpers,
GenericHelpers,
NavigationHelpers,
RoutingHelpers
} from '../../utilities/helpers';
import { NodeDataManagementStorage } from '../../services/node-data-management';

import { LuigiConfig } from '../../core-api';
import { NodeDataManagementStorage } from '../../services/node-data-management';

class NavigationClass {
async getNavigationPath(rootNavProviderPromise, path = '') {
Expand Down Expand Up @@ -72,7 +74,7 @@ class NavigationClass {
if (!NodeDataManagementStorage.hasChildren(node)) {
try {
children = await AsyncHelpers.getConfigValueFromObjectAsync(node, 'children', context || node.context);
if (children === undefined) {
if (children === undefined || children === null) {
children = [];
}
children =
Expand Down

0 comments on commit 0042e27

Please sign in to comment.