Fix sync metadata (#15135)
This commit is contained in:
-2
@@ -137,7 +137,6 @@ export class StandardFieldFactory {
|
||||
|
||||
return [
|
||||
{
|
||||
viewFields: [],
|
||||
type: workspaceFieldMetadataArgs.type,
|
||||
standardId: workspaceFieldMetadataArgs.standardId,
|
||||
name: workspaceFieldMetadataArgs.name,
|
||||
@@ -187,7 +186,6 @@ export class StandardFieldFactory {
|
||||
}
|
||||
|
||||
fieldMetadataCollection.push({
|
||||
viewFields: [],
|
||||
type: FieldMetadataType.RELATION,
|
||||
standardId: workspaceRelationMetadataArgs.standardId,
|
||||
name: workspaceRelationMetadataArgs.name,
|
||||
|
||||
+17
-16
@@ -11,23 +11,24 @@ import { type ObjectMetadataEntity } from 'src/engine/metadata-modules/object-me
|
||||
// Should get deprecated in favor of the FlatFieldMetadata
|
||||
export type PartialFieldMetadata<
|
||||
T extends FieldMetadataType = FieldMetadataType,
|
||||
> = Omit<
|
||||
> = Pick<
|
||||
FieldMetadataEntity<T>,
|
||||
| 'id'
|
||||
| 'label'
|
||||
| 'description'
|
||||
| 'objectMetadataId'
|
||||
| 'createdAt'
|
||||
| 'updatedAt'
|
||||
| 'standardId'
|
||||
| 'icon'
|
||||
| 'isSystem'
|
||||
| 'workspaceId'
|
||||
| 'isActive'
|
||||
| 'asExpression'
|
||||
| 'indexFieldMetadatas'
|
||||
| 'fieldPermissions'
|
||||
| 'object'
|
||||
| 'type'
|
||||
| 'name'
|
||||
| 'defaultValue'
|
||||
| 'standardOverrides'
|
||||
| 'options'
|
||||
| 'settings'
|
||||
| 'isCustom'
|
||||
| 'isUIReadOnly'
|
||||
| 'isNullable'
|
||||
| 'isUnique'
|
||||
| 'isLabelSyncedWithName'
|
||||
| 'relationTargetFieldMetadataId'
|
||||
| 'relationTargetFieldMetadata'
|
||||
| 'relationTargetObjectMetadataId'
|
||||
| 'relationTargetObjectMetadata'
|
||||
| 'morphId'
|
||||
> & {
|
||||
standardId: string;
|
||||
label: string | ((objectMetadata: ObjectMetadataEntity) => string);
|
||||
|
||||
-1
@@ -44,7 +44,6 @@ export const computeStandardFields = (
|
||||
fields.push({
|
||||
...data,
|
||||
...rest,
|
||||
viewFields: [],
|
||||
standardId: relationStandardId,
|
||||
defaultValue: null,
|
||||
isNullable: true,
|
||||
|
||||
Reference in New Issue
Block a user