Prevent binding extensions for repo overview top, which could be already disabled via the local storage and therefore send errors during the hook execution.

This commit is contained in:
Eduard Heimbuch
2024-01-16 10:52:16 +01:00
parent 488e04823c
commit ea60b68cec
2 changed files with 17 additions and 9 deletions

View File

@@ -0,0 +1,2 @@
- type: fixed
description: Do not mount extensions which are already disabled via configuration

View File

@@ -242,15 +242,21 @@ const Overview: FC = () => {
<div className="column is-clipped">
<KeyboardIterator>
<KeyboardSubIterator>
<ExtensionPoint<extensionPoints.RepositoryOverviewTop>
name="repository.overview.top"
renderAll={true}
props={{
page,
search,
namespace,
}}
/>
{binder.hasExtension<extensionPoints.RepositoryOverviewTop>("repository.overview.top", {
page,
search,
namespace,
}) ? (
<ExtensionPoint<extensionPoints.RepositoryOverviewTop>
name="repository.overview.top"
renderAll={true}
props={{
page,
search,
namespace,
}}
/>
) : null}
</KeyboardSubIterator>
<Repositories
namespaces={namespaces}