Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Fix never hit `(!code || code.length === 0)` (#24860)
Yongtao Huang3d57a9ccdc4b
diff --git a/web/service/use-share.ts b/web/service/use-share.tsindex 6845a2f3c79..267975fd384 100644--- a/web/service/use-share.ts+++ b/web/service/use-share.ts@@ -6,12 +6,7 @@ const NAME_SPACE = 'webapp'export const useGetWebAppAccessModeByCode = (code: string | null) => {return useQuery({queryKey: [NAME_SPACE, 'appAccessMode', code],- queryFn: () => {- if (!code || code.length === 0)- return Promise.reject(new Error('App code is required to get access mode'))-- return getAppAccessModeByAppCode(code)- },+ queryFn: () => getAppAccessModeByAppCode(code!),enabled: !!code,})}