Skip to content

Commit

Permalink
fix(catalogue): show sub catalogue logo (#4369)
Browse files Browse the repository at this point in the history
fix header data query, if in subnetwork , fetch the logo from the resource that matches the sub catalogue id
  • Loading branch information
connoratrug authored Oct 17, 2024
1 parent 974aad2 commit 1f3cad9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/nuxt3-ssr/composables/useHeaderData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export async function useHeaderData() {
method: "POST",
body: {
query: `
query HeaderQuery($resourceFilter:ResourcesFilter, $variablesFilter:VariablesFilter) {
Resources(filter:$resourceFilter) {
query HeaderQuery($resourceFilter:ResourcesFilter, $variablesFilter:VariablesFilter, $networksFilter:ResourcesFilter) {
Resources(filter:$networksFilter) {
id,
logo { url }
}
Expand All @@ -36,6 +36,9 @@ export async function useHeaderData() {
}
}`,
variables: {
networksFilter: scoped
? { id: { equals: catalogueRouteParam } }
: undefined,
resourceFilter: scoped
? {
_or: [
Expand Down

0 comments on commit 1f3cad9

Please sign in to comment.