Skip to content

Commit

Permalink
fix(frontend): fix preview action params
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelB committed Dec 17, 2020
1 parent 6db8599 commit 37388a7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
5 changes: 0 additions & 5 deletions targets/frontend/src/gql/preview.gql.js

This file was deleted.

5 changes: 5 additions & 0 deletions targets/frontend/src/lib/preview/preview.gql.js
@@ -0,0 +1,5 @@
export const previewContentAction = `
mutation preview( $cdtnId: String! $document: jsonb! $source: String!) {
preview_document(cdtnId: $cdtnId, document: $document, source: $source)
}
`;
2 changes: 1 addition & 1 deletion targets/frontend/src/pages/contenus/[id].js
Expand Up @@ -8,9 +8,9 @@ import { Button } from "src/components/button";
import { Layout } from "src/components/layout/auth.layout";
import { Inline } from "src/components/layout/Inline";
import { Stack } from "src/components/layout/Stack";
import { previewContentAction } from "src/gql/preview.gql";
import { withCustomUrqlClient } from "src/hoc/CustomUrqlClient";
import { withUserProvider } from "src/hoc/UserProvider";
import { previewContentAction } from "src/lib/preview/preview.gql";
import { Card, jsx, Message, NavLink } from "theme-ui";
import { useMutation, useQuery } from "urql";

Expand Down
2 changes: 1 addition & 1 deletion targets/frontend/src/pages/contenus/edit/[id].js
Expand Up @@ -9,9 +9,9 @@ import { EditorialContentForm } from "src/components/editorialContent/Form";
import { Layout } from "src/components/layout/auth.layout";
import { Inline } from "src/components/layout/Inline";
import { Stack } from "src/components/layout/Stack";
import { previewContentAction } from "src/gql/preview.gql";
import { withCustomUrqlClient } from "src/hoc/CustomUrqlClient";
import { withUserProvider } from "src/hoc/UserProvider";
import { previewContentAction } from "src/lib/preview/preview.gql";
import { jsx, Spinner } from "theme-ui";
import { useMutation, useQuery } from "urql";

Expand Down

0 comments on commit 37388a7

Please sign in to comment.