Various fixes (#362)
This commit is contained in:
@ -48,6 +48,7 @@ export function NewButton({ pipelineId, columnId }: OwnProps) {
|
||||
setBoard(newBoard);
|
||||
await createOnePipelineProgress({
|
||||
variables: {
|
||||
uuid: newUuid,
|
||||
pipelineStageId: columnId,
|
||||
pipelineId,
|
||||
entityId: company.id,
|
||||
|
||||
@ -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 } }
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user