Fix request block refresh and region config
This commit is contained in:
@@ -34,9 +34,7 @@ const getConfigLocation = () => {
|
||||
const bucket = process.env.REQUEST_BLOCK_CONFIG_S3_BUCKET;
|
||||
const key = process.env.REQUEST_BLOCK_CONFIG_S3_KEY;
|
||||
const region =
|
||||
process.env.REQUEST_BLOCK_CONFIG_S3_REGION ||
|
||||
process.env.AWS_REGION ||
|
||||
DEFAULT_AWS_REGION;
|
||||
process.env.REQUEST_BLOCK_CONFIG_S3_REGION || DEFAULT_AWS_REGION;
|
||||
|
||||
return {
|
||||
bucket,
|
||||
|
||||
@@ -22,7 +22,7 @@ export const AdminOrgTable = () => {
|
||||
if (before) params.append("before", before);
|
||||
const url = `/admin/orgs${params.toString() ? `?${params.toString()}` : ""}`;
|
||||
|
||||
const { data, isLoading } = useQuery({
|
||||
const { data, isLoading, refetch } = useQuery({
|
||||
queryKey: ["admin-orgs", search, after, before],
|
||||
queryFn: async () => {
|
||||
const { data } = await axiosInstance.get(url);
|
||||
|
||||
Reference in New Issue
Block a user