fix: make TagSelector always visible for accessibility and mobile support (#23515)
This commit is contained in:
parent
d253ca192a
commit
f6c7175828
10 changed files with 19 additions and 26 deletions
|
|
@ -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,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue