Skip to content

Commit

Permalink
fix(build): fix build failed by circular dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
robertu7 committed Oct 6, 2023
1 parent dd7674d commit 63c6599
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Dialogs/AddCollectionsArticleDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {
} from '~/components'
import { updateUserCollectionsArticles } from '~/components/GQL'
import { AddCollectionsArticlesMutation } from '~/gql/graphql'
import { COLLECTION_DETAIL } from '~/views/User/CollectionDetail/gql'
import { USER_COLLECTIONS } from '~/views/User/Collections/gql'

import { ADD_COLLECTIONS_ARTICLES } from './gql'
Expand All @@ -40,6 +39,9 @@ const BaseAddCollectionsArticleDialog = ({
children,
articleId,
}: AddCollectionsArticleDialogProps) => {
// FIXME: circular dependencies
const { COLLECTION_DETAIL } = require('~/views/User/CollectionDetail/gql')

const viewer = useContext(ViewerContext)
const { getQuery } = useRoute()

Expand Down

0 comments on commit 63c6599

Please sign in to comment.