Morph many to one picker (#14155)
This PR follows the multiSelect PR merged previously. It will enable morph relation Many to One to be handled from the table, using a singleSelect picker Main point : I decided to change the singleSelect API to take an array of **objectMetadataName** instead of only one to deal with both our usecases. --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
+1
-1
@@ -172,7 +172,7 @@ export const WorkflowEditActionDeleteRecord = ({
|
||||
onChange={(objectRecordId) =>
|
||||
handleFieldChange('objectRecordId', objectRecordId)
|
||||
}
|
||||
objectNameSingular={objectNameSingular}
|
||||
objectNameSingulars={[objectNameSingular]}
|
||||
defaultValue={formData.objectRecordId}
|
||||
testId="workflow-edit-action-record-delete-object-record-id"
|
||||
disabled={isFormDisabled}
|
||||
|
||||
+1
-1
@@ -211,7 +211,7 @@ export const WorkflowEditActionUpdateRecord = ({
|
||||
onChange={(objectRecordId) =>
|
||||
handleFieldChange('objectRecordId', objectRecordId)
|
||||
}
|
||||
objectNameSingular={objectNameSingular}
|
||||
objectNameSingulars={[objectNameSingular]}
|
||||
defaultValue={formData.objectRecordId}
|
||||
disabled={isFormDisabled}
|
||||
VariablePicker={WorkflowVariablePicker}
|
||||
|
||||
+1
-1
@@ -116,7 +116,7 @@ export const WorkflowStepFilterValueInput = ({
|
||||
defaultValue={stepFilter.value}
|
||||
onChange={handleValueChange}
|
||||
VariablePicker={WorkflowVariablePicker}
|
||||
objectNameSingular={objectMetadataItem.nameSingular}
|
||||
objectNameSingulars={[objectMetadataItem.nameSingular]}
|
||||
disabled={readonly}
|
||||
/>
|
||||
);
|
||||
|
||||
+1
-1
@@ -137,7 +137,7 @@ export const WorkflowEditActionFormFiller = ({
|
||||
},
|
||||
});
|
||||
}}
|
||||
objectNameSingular={objectNameSingular}
|
||||
objectNameSingulars={[objectNameSingular]}
|
||||
disabled={actionOptions.readonly}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user