Skip to content

Commit

Permalink
fix: ne pas afficher les contributions personnalisées dans les non th…
Browse files Browse the repository at this point in the history
…émés (#1146)
  • Loading branch information
m-maillot authored Dec 5, 2023
1 parent c0f6f86 commit be664a7
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions targets/frontend/src/components/home/UnThemedContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,25 @@ import { FixedSnackBar } from "../utils/SnackBar";
import React from "react";
import { theme } from "src/theme";

// TODO Retirer le split de la requête quand les anciennes contributions seront retirées
export const getUnthemedContentQuery = `
query getUnthemed($themeSources: [String!]!) {
documents (where: {
documents(where: {
is_available: {_eq: true}
is_published: {_eq: true}
source: {
_in: $themeSources
}
source: {_in: $themeSources}
_and: [
{_not: {
relation_b: {type: {_eq: "${RELATIONS.THEME_CONTENT}"} a :{source: {_eq: "${SOURCES.THEMES}"}} }
}}
{_not: {document: {_has_key: "split"}}}
{_and: [
{_not: {document: {_has_key: "split"}}},
{_or: [
{_not: {document: {_has_key: "idcc"}}},
{document: {_contains: {idcc: "0000"}}}
]}
]}
]
}) {
source
slug
Expand Down

0 comments on commit be664a7

Please sign in to comment.