mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
fix(ci): satisfy format check and types after main rebase
Narrow plugin rows in search results and compare org-role visibility against the route handle so types-build passes on rebased main.
This commit is contained in:
committed by
Patrick Erichsen
parent
3568288c91
commit
8df8d9f550
@@ -228,9 +228,9 @@ function UnifiedSearchPage() {
|
||||
{results.map((item) =>
|
||||
item.type === "skill" ? (
|
||||
<SkillResultRow key={`skill-${item.skill._id}`} result={item} />
|
||||
) : (
|
||||
) : item.type === "plugin" ? (
|
||||
<PluginResultRow key={`plugin-${item.plugin.name}`} result={item} />
|
||||
),
|
||||
) : null,
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
@@ -340,4 +340,3 @@ function SkillResultRow({ result }: { result: UnifiedSkillResult }) {
|
||||
function PluginResultRow({ result }: { result: UnifiedPluginResult }) {
|
||||
return <PluginListItem item={result.plugin} />;
|
||||
}
|
||||
|
||||
|
||||
@@ -556,8 +556,7 @@ export function PublisherProfilePage({
|
||||
() => Boolean(myPublisherMemberships?.some((entry) => entry.publisher.handle === handle)),
|
||||
[myPublisherMemberships, handle],
|
||||
);
|
||||
const viewerCanSeeOrgRoles =
|
||||
isAdmin(me) || (me?.handle != null && me.handle === publisher.handle);
|
||||
const viewerCanSeeOrgRoles = isAdmin(me) || (me?.handle != null && me.handle === handle);
|
||||
|
||||
const {
|
||||
results: publishedResults,
|
||||
|
||||
Reference in New Issue
Block a user