Skip to content

Commit 799ecfc

Browse files
committed
fix: update GraphQL queries to use slug parameter instead of filters
1 parent bc373bc commit 799ecfc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function OrgDashboardLayout({ children }: DashboardLayoutProps) {
2828
? getOrgDetailsQryDoc
2929
: getDataSpaceDetailsQryDoc,
3030
{},
31-
{ filters: { slug: params.entitySlug } }
31+
{ slug: params.entitySlug }
3232
)
3333
);
3434

app/[locale]/dashboard/[entityType]/[entitySlug]/schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { graphql } from '@/gql';
22

33
export const getOrgDetailsQryDoc: any = graphql(`
4-
query getOrgDetailsQry($filters: OrganizationFilter) {
5-
organizations(filters: $filters) {
4+
query getOrgDetailsQry($slug: String) {
5+
organizations(slug: $slug) {
66
id
77
name
88
logo {

0 commit comments

Comments
 (0)