mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-25 19:37:36 +08:00
fix: linter errors
This commit is contained in:
@@ -127,20 +127,20 @@ function MarketPageContent({
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let response;
|
|
||||||
const { sortBy, sortOrder } = getCurrentSort();
|
const { sortBy, sortOrder } = getCurrentSort();
|
||||||
const filterValue =
|
const filterValue =
|
||||||
componentFilter === 'all' ? undefined : componentFilter;
|
componentFilter === 'all' ? undefined : componentFilter;
|
||||||
|
|
||||||
// Always use searchMarketplacePlugins to support component filtering
|
// Always use searchMarketplacePlugins to support component filtering
|
||||||
response = await getCloudServiceClientSync().searchMarketplacePlugins(
|
const response =
|
||||||
isSearch && searchQuery.trim() ? searchQuery.trim() : '',
|
await getCloudServiceClientSync().searchMarketplacePlugins(
|
||||||
page,
|
isSearch && searchQuery.trim() ? searchQuery.trim() : '',
|
||||||
pageSize,
|
page,
|
||||||
sortBy,
|
pageSize,
|
||||||
sortOrder,
|
sortBy,
|
||||||
filterValue,
|
sortOrder,
|
||||||
);
|
filterValue,
|
||||||
|
);
|
||||||
|
|
||||||
const data: ApiRespMarketplacePlugins = response;
|
const data: ApiRespMarketplacePlugins = response;
|
||||||
const newPlugins = data.plugins.map(transformToVO);
|
const newPlugins = data.plugins.map(transformToVO);
|
||||||
|
|||||||
Reference in New Issue
Block a user