mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 01:08:28 +02:00
More fixes
This commit is contained in:
@@ -55,7 +55,8 @@ async function op(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return { client: _clients[hash], clientHash: hash };
|
// oxlint-disable-next-line no-non-null-assertion
|
||||||
|
return { client: _clients[hash]!, clientHash: hash };
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getValue(
|
async function getValue(
|
||||||
|
|||||||
@@ -146,7 +146,7 @@ export const GraphQLDocsExplorer = memo(function GraphQLDocsExplorer({
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div
|
<div
|
||||||
key={activeItem.type.name} // Reset scroll position to top
|
key={'name' in activeItem.type ? activeItem.type.name : String(activeItem.type)} // Reset scroll position to top
|
||||||
className="overflow-y-auto h-full w-full p-3 grid grid-cols-[minmax(0,1fr)]"
|
className="overflow-y-auto h-full w-full p-3 grid grid-cols-[minmax(0,1fr)]"
|
||||||
>
|
>
|
||||||
<GqlTypeInfo item={activeItem} setItem={setActiveItem} schema={schema} />
|
<GqlTypeInfo item={activeItem} setItem={setActiveItem} schema={schema} />
|
||||||
@@ -202,7 +202,7 @@ function GraphQLExplorerHeader({
|
|||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<GqlSchemaSearch
|
<GqlSchemaSearch
|
||||||
key={item?.type.name} // Force reset when changing items
|
key={item != null && 'name' in item.type ? item.type.name : 'search'} // Force reset when changing items
|
||||||
maxHeight={containerHeight}
|
maxHeight={containerHeight}
|
||||||
currentItem={item}
|
currentItem={item}
|
||||||
schema={schema}
|
schema={schema}
|
||||||
@@ -798,7 +798,7 @@ function GqlSchemaSearch({
|
|||||||
label="search"
|
label="search"
|
||||||
hideLabel
|
hideLabel
|
||||||
defaultValue={value}
|
defaultValue={value}
|
||||||
placeholder={focused ? `Search ${currentItem != null ? currentItem.type.name : 'Schema'}` : 'Search'}
|
placeholder={focused ? `Search ${currentItem != null && 'name' in currentItem.type ? currentItem.type.name : 'Schema'}` : 'Search'}
|
||||||
leftSlot={
|
leftSlot={
|
||||||
<div className="w-10 flex justify-center items-center">
|
<div className="w-10 flex justify-center items-center">
|
||||||
<Icon size="sm" icon="search" color="secondary" />
|
<Icon size="sm" icon="search" color="secondary" />
|
||||||
|
|||||||
@@ -17,5 +17,6 @@
|
|||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"types": ["node"]
|
"types": ["node"]
|
||||||
}
|
},
|
||||||
|
"exclude": ["flatpak", "npm", "crates/yaak-templates/pkg"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user