Skip to content
Snippets Groups Projects
Commit d6575320 authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3221623 by Xiaohua Guan, yas: Fix an unexpected error at /clouds/design/store/k8s_cost_store

parent bf529124
No related branches found
No related tags found
No related merge requests found
......@@ -320,6 +320,12 @@ function cloud_cluster_views_query_alter(ViewExecutable $view, QueryPluginBase $
return;
}
// Skips if the view id is not an entity id.
$entity_type_definitions = \Drupal::entityTypeManager()->getDefinitions();
if (empty($entity_type_definitions[$view->id()])) {
return;
}
$route_match = \Drupal::service('current_route_match');
$cloud_cluster_name = $route_match->getParameter(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment