style: format workspace quota hook

This commit is contained in:
RockChinQ
2026-10-15 05:30:36 +00:00
parent b6c4e2c395
commit b1d9484876
@@ -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,