Various fixes (#362)

This commit is contained in:
Charles Bochet
2023-06-22 14:57:08 -07:00
committed by GitHub
parent ba1dd07e53
commit 1b8b78d615
8 changed files with 17 additions and 18 deletions

View File

@ -48,6 +48,7 @@ export function NewButton({ pipelineId, columnId }: OwnProps) {
setBoard(newBoard);
await createOnePipelineProgress({
variables: {
uuid: newUuid,
pipelineStageId: columnId,
pipelineId,
entityId: company.id,

View File

@ -33,6 +33,7 @@ export const UPDATE_PIPELINE_STAGE = gql`
export const ADD_ENTITY_TO_PIPELINE = gql`
mutation CreateOnePipelineProgress(
$uuid: String!
$entityType: PipelineProgressableType!
$entityId: String!
$pipelineId: String!
@ -40,6 +41,7 @@ export const ADD_ENTITY_TO_PIPELINE = gql`
) {
createOnePipelineProgress(
data: {
id: $uuid
progressableType: $entityType
progressableId: $entityId
pipeline: { connect: { id: $pipelineId } }

View File

@ -1,7 +1,7 @@
import * as React from 'react';
import styled from '@emotion/styled';
import { Pipeline } from '../interfaces/pipeline.interface';
import { Pipeline } from '~/generated/graphql';
type OwnProps = {
opportunity: Pipeline;

View File

@ -1,12 +0,0 @@
export interface Pipeline {
id: string;
name?: string;
icon?: string | null;
}
export interface GraphqlQueryPipeline {
id: string;
name?: string;
icon?: string | null;
__typename?: string;
}