fix: make TagSelector always visible for accessibility and mobile support (#23515)

This commit is contained in:
lyzno1 2025-08-07 09:25:26 +08:00 • committed by GitHub
commit f6c7175828
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 19 additions and 26 deletions

View file

@ -70,7 +70,7 @@ export const useUpdateAccessMode = () => {
})
}
export const useGetUserCanAccessApp = ({ appId, isInstalledApp = true }: { appId?: string; isInstalledApp?: boolean; }) => {
export const useGetUserCanAccessApp = ({ appId, isInstalledApp = true, enabled }: { appId?: string; isInstalledApp?: boolean; enabled?: boolean }) => {
const systemFeatures = useGlobalPublicStore(s => s.systemFeatures)
return useQuery({
queryKey: [NAME_SPACE, 'user-can-access-app', appId],
@ -80,7 +80,7 @@ export const useGetUserCanAccessApp = ({ appId, isInstalledApp = true }: { appId
else
return { result: true }
},
enabled: !!appId,
enabled: enabled !== undefined ? enabled : !!appId,
staleTime: 0,
gcTime: 0,
})