fix(dashboard,types): Add missing Metadata form for Region domain and fix payload types (#10449)
This commit is contained in:
@@ -901,6 +901,10 @@ export const RouteMap: RouteObject[] = [
|
||||
lazy: () =>
|
||||
import("../../routes/regions/region-add-countries"),
|
||||
},
|
||||
{
|
||||
path: "metadata/edit",
|
||||
lazy: () => import("../../routes/regions/region-metadata"),
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
|
||||
@@ -7,8 +7,8 @@ import { useRegion, useUpdateRegion } from "../../../hooks/api"
|
||||
export const RegionMetadata = () => {
|
||||
const { id } = useParams()
|
||||
|
||||
const { region, isPending, isError, error } = useRegion(id)
|
||||
const { mutateAsync, isPending: isMutating } = useUpdateRegion(id)
|
||||
const { region, isPending, isError, error } = useRegion(id!)
|
||||
const { mutateAsync, isPending: isMutating } = useUpdateRegion(id!)
|
||||
|
||||
if (isError) {
|
||||
throw error
|
||||
|
||||
Reference in New Issue
Block a user