[OBJECT_CACHE_FLUSH_REQUIRED_WHEN_RELEASED] Remove FlatObjectMetadata custom fieldMetadataIds fk aggregator property (#17438)
# Introduction Currently refactoring `flatEntity` typing, encountering some tsc errors due to this fk aggregator custom override It shall now follow generic pattern leading to be named `fieldIds` Needs to flush object cache when released
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ export const resolveRichTextFieldsInRecord = (
|
||||
): Record<string, unknown> => {
|
||||
const { flatObjectMetadata, flatFieldMetadataMaps } = objectMetadataInfo;
|
||||
|
||||
const richTextFieldNames = flatObjectMetadata.fieldMetadataIds
|
||||
const richTextFieldNames = flatObjectMetadata.fieldIds
|
||||
.map((fieldId) => flatFieldMetadataMaps.byId[fieldId])
|
||||
.filter((field) => field?.type === FieldMetadataType.RICH_TEXT_V2)
|
||||
.map((field) => field?.name)
|
||||
|
||||
+1
-1
@@ -71,7 +71,7 @@ export class FindRecordsWorkflowAction implements WorkflowAction {
|
||||
workspaceId,
|
||||
);
|
||||
|
||||
const fields = flatObjectMetadata.fieldMetadataIds
|
||||
const fields = flatObjectMetadata.fieldIds
|
||||
.map((fieldId) => {
|
||||
const field = flatFieldMetadataMaps.byId[fieldId];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user