diff --git a/oarepo_ui/resources/catalog.py b/oarepo_ui/resources/catalog.py index f0be9a71..826ebf27 100644 --- a/oarepo_ui/resources/catalog.py +++ b/oarepo_ui/resources/catalog.py @@ -164,7 +164,7 @@ def component_paths(self) -> Dict[str, Tuple[Path, Path]]: # if the priority is greater, replace the path if ( partial_template_name not in paths - or partial_priority > paths[template_name][2] + or partial_priority > paths[partial_template_name][2] ): paths[partial_template_name] = ( absolute_template_path,