mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-22 08:25:21 +08:00
style: format workspace quota hook
This commit is contained in:
@@ -49,14 +49,12 @@ export function useWorkspaceQuotaStatus(): WorkspaceQuotaStatus {
|
||||
} = useSidebarData();
|
||||
const currentWorkspace = useCurrentWorkspace();
|
||||
const cloud = currentWorkspace?.workspace.source === 'cloud_projection';
|
||||
const limitation = cloud ? currentWorkspace.limitation : systemInfo.limitation;
|
||||
const limitation = cloud
|
||||
? currentWorkspace.limitation
|
||||
: systemInfo.limitation;
|
||||
const loaded = quotaDataLoaded && (!cloud || limitation != null);
|
||||
|
||||
const botQuota = quotaItem(
|
||||
bots.length,
|
||||
limitation?.max_bots,
|
||||
loaded,
|
||||
);
|
||||
const botQuota = quotaItem(bots.length, limitation?.max_bots, loaded);
|
||||
const pipelineQuota = quotaItem(
|
||||
pipelines.length,
|
||||
limitation?.max_pipelines,
|
||||
|
||||
Reference in New Issue
Block a user