mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-23 12:02:10 +03:00
[Fix] Remove usage of deprecated FieldMetadata type probability (#6279)
Bad timing between merge of364caf0fdf
andc0f6f52669
a few minutes apart caused issues. Fixing it here !
This commit is contained in:
parent
34cbba5fd8
commit
26bffce23b
@ -1,5 +1,5 @@
|
||||
import { gql } from '@apollo/client';
|
||||
import * as Apollo from '@apollo/client';
|
||||
import { gql } from '@apollo/client';
|
||||
export type Maybe<T> = T | null;
|
||||
export type InputMaybe<T> = Maybe<T>;
|
||||
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
||||
@ -2528,7 +2528,6 @@ export enum FieldMetadataType {
|
||||
Numeric = 'NUMERIC',
|
||||
Phone = 'PHONE',
|
||||
Position = 'POSITION',
|
||||
Probability = 'PROBABILITY',
|
||||
Rating = 'RATING',
|
||||
RawJson = 'RAW_JSON',
|
||||
Relation = 'RELATION',
|
||||
|
@ -25,7 +25,6 @@ export const mapFieldMetadataToGraphqlQuery = (
|
||||
FieldMetadataType.BOOLEAN,
|
||||
FieldMetadataType.NUMBER,
|
||||
FieldMetadataType.NUMERIC,
|
||||
FieldMetadataType.PROBABILITY,
|
||||
FieldMetadataType.RATING,
|
||||
FieldMetadataType.SELECT,
|
||||
FieldMetadataType.MULTI_SELECT,
|
||||
|
@ -25,7 +25,6 @@ const getTypeFromFieldMetadataType = (
|
||||
case FieldMetadataType.NUMBER:
|
||||
return 'integer';
|
||||
case FieldMetadataType.NUMERIC:
|
||||
case FieldMetadataType.PROBABILITY:
|
||||
return 'number';
|
||||
default:
|
||||
return undefined;
|
||||
@ -183,7 +182,6 @@ export const computeInputFields = (
|
||||
case FieldMetadataType.BOOLEAN:
|
||||
case FieldMetadataType.NUMBER:
|
||||
case FieldMetadataType.NUMERIC:
|
||||
case FieldMetadataType.PROBABILITY:
|
||||
case FieldMetadataType.RATING: {
|
||||
const nodeFieldType = getTypeFromFieldMetadataType(nodeField.type);
|
||||
if (!nodeFieldType) {
|
||||
|
@ -40,7 +40,6 @@ export enum FieldMetadataType {
|
||||
BOOLEAN = 'BOOLEAN',
|
||||
NUMBER = 'NUMBER',
|
||||
NUMERIC = 'NUMERIC',
|
||||
PROBABILITY = 'PROBABILITY',
|
||||
LINK = 'LINK',
|
||||
CURRENCY = 'CURRENCY',
|
||||
FULL_NAME = 'FULL_NAME',
|
||||
|
Loading…
Reference in New Issue
Block a user