diff --git a/views/005_component_views.sql b/views/005_component_views.sql index 71ef904b..1e16145b 100644 --- a/views/005_component_views.sql +++ b/views/005_component_views.sql @@ -155,7 +155,7 @@ BEGIN WITH config_id_paths AS ( SELECT config_items.id FROM config_items - WHERE starts_with(path, (SELECT path FROM config_items WHERE id IN (SELECT config_id FROM components WHERE components.id = $1::UUID))) + WHERE starts_with(path, (SELECT path FROM config_items WHERE config_items.id IN (SELECT config_id FROM components WHERE components.id = $1::UUID))) ) SELECT components.id FROM components