Fix request block refresh and region config

This commit is contained in:
Michael Malis
2026-03-30 14:28:03 -07:00
parent 7db05c06ed
commit 553b667ebd
2 changed files with 2 additions and 4 deletions

View File

@@ -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,

View File

@@ -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);