diff --git a/packages/ui/src/ui/pages/navigation/Navigation/Navigation.js b/packages/ui/src/ui/pages/navigation/Navigation/Navigation.js index 78062e0ad..7eee88a46 100644 --- a/packages/ui/src/ui/pages/navigation/Navigation/Navigation.js +++ b/packages/ui/src/ui/pages/navigation/Navigation/Navigation.js @@ -390,10 +390,12 @@ class Navigation extends Component { } renderRequestPermission(error) { - const {object_type: objectType} = error.attributes; - const {path, cluster} = this.props; + const {object_type: objectType, path: errorPath} = error.attributes; + const {path: currentPath, cluster} = this.props; const isRequestPermissionsForPathAllowed = objectType === 'map_node'; + const path = errorPath ?? currentPath; + const pathForRequest = isRequestPermissionsForPathAllowed ? path : getParentPath(path); const textForRequest = isRequestPermissionsForPathAllowed ? 'Request permission'