mirror of
https://github.com/twentyhq/twenty.git
synced 2024-11-22 21:50:43 +03:00
Added "Select an option" as default none selector on Workflow Visualizer (#7867)
## What does this PR do? Shows "Select an option" as a default selector on the select component for the trigger step in the workflow visualizer Fixes #7432 <img width="1470" alt="Screenshot 2024-10-20 at 12 48 39 AM" src="https://github.com/user-attachments/assets/189c2a7a-8abd-4411-90b4-d0e1de487fd5"> <img width="1470" alt="Screenshot 2024-10-20 at 12 48 50 AM" src="https://github.com/user-attachments/assets/f451068c-0184-40cb-9cab-f139df400cc6"> --------- Co-authored-by: Devessier <baptiste@devessier.fr>
This commit is contained in:
parent
a35d888c12
commit
1f84e61da8
@ -114,6 +114,7 @@ export const WorkflowEditTriggerForm = ({
|
||||
fullWidth
|
||||
disabled={readonly}
|
||||
value={triggerEvent?.objectType}
|
||||
emptyOption={{ label: 'Select an option', value: '' }}
|
||||
options={availableMetadata}
|
||||
onChange={(updatedRecordType) => {
|
||||
if (readonly === true) {
|
||||
@ -143,6 +144,7 @@ export const WorkflowEditTriggerForm = ({
|
||||
label="Event type"
|
||||
fullWidth
|
||||
value={triggerEvent?.event}
|
||||
emptyOption={{ label: 'Select an option', value: '' }}
|
||||
options={OBJECT_EVENT_TRIGGERS}
|
||||
disabled={readonly}
|
||||
onChange={(updatedEvent) => {
|
||||
|
Loading…
Reference in New Issue
Block a user