fix(dashboard): user invite search (#9973)

**What**
- fix prefix for table search which caused the other table rendered on the page to fire query
- additionally, fix a typo in js SDK and only format the file

---

FIXES SUP-112
CLOSES https://github.com/medusajs/medusa/issues/9968
This commit is contained in:
Frane Polić
2024-11-07 20:13:28 +01:00
committed by GitHub
parent 1a0882cc01
commit 576da17da3
2 changed files with 291 additions and 287 deletions

View File

@@ -32,7 +32,7 @@ import {
} from "../../../../../hooks/api/invites"
import { useUserInviteTableQuery } from "../../../../../hooks/table/query/use-user-invite-table-query"
import { useDataTable } from "../../../../../hooks/use-data-table"
import { isFetchError } from "../../../../../lib/is-fetch-error.ts"
import { isFetchError } from "../../../../../lib/is-fetch-error"
const InviteUserSchema = zod.object({
email: zod.string().email(),
@@ -168,6 +168,7 @@ export const InviteUserForm = () => {
search="autofocus"
isLoading={isLoading}
queryObject={raw}
prefix={PREFIX}
orderBy={[
{ key: "email", label: t("fields.email") },
{ key: "created_at", label: t("fields.createdAt") },

File diff suppressed because it is too large Load Diff