Fix timeline activities display (#16880)
Fixes https://github.com/twentyhq/twenty/issues/16809 # Introduction Front was expected timeline activities field to be relation and not morph relation Also fixed the new v2 workspace creation that had a bug in the createStandardRelation util ( it's not in production yet so everything's fine )
This commit is contained in:
+3
-2
@@ -3,7 +3,7 @@ import {
|
||||
type FieldMetadataDefaultOption,
|
||||
type FieldMetadataDefaultValueForAnyType,
|
||||
type FieldMetadataSettings,
|
||||
FieldMetadataType,
|
||||
type FieldMetadataType,
|
||||
} from 'twenty-shared/types';
|
||||
|
||||
import { type FlatFieldMetadata } from 'src/engine/metadata-modules/flat-field-metadata/types/flat-field-metadata.type';
|
||||
@@ -70,6 +70,7 @@ export const createStandardRelationFieldFlatMetadata = <
|
||||
settings,
|
||||
options: fieldOptions = null,
|
||||
morphId,
|
||||
type,
|
||||
},
|
||||
standardObjectMetadataRelatedEntityIds,
|
||||
twentyStandardApplicationId,
|
||||
@@ -89,7 +90,7 @@ export const createStandardRelationFieldFlatMetadata = <
|
||||
applicationId: twentyStandardApplicationId,
|
||||
workspaceId,
|
||||
objectMetadataId: standardObjectMetadataRelatedEntityIds[objectName].id,
|
||||
type: FieldMetadataType.RELATION,
|
||||
type,
|
||||
name: fieldName.toString(),
|
||||
label,
|
||||
description,
|
||||
|
||||
Reference in New Issue
Block a user