mirror of
https://github.com/lingble/twenty.git
synced 2025-11-02 05:37:56 +00: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:
@@ -114,6 +114,7 @@ export const WorkflowEditTriggerForm = ({
|
|||||||
fullWidth
|
fullWidth
|
||||||
disabled={readonly}
|
disabled={readonly}
|
||||||
value={triggerEvent?.objectType}
|
value={triggerEvent?.objectType}
|
||||||
|
emptyOption={{ label: 'Select an option', value: '' }}
|
||||||
options={availableMetadata}
|
options={availableMetadata}
|
||||||
onChange={(updatedRecordType) => {
|
onChange={(updatedRecordType) => {
|
||||||
if (readonly === true) {
|
if (readonly === true) {
|
||||||
@@ -143,6 +144,7 @@ export const WorkflowEditTriggerForm = ({
|
|||||||
label="Event type"
|
label="Event type"
|
||||||
fullWidth
|
fullWidth
|
||||||
value={triggerEvent?.event}
|
value={triggerEvent?.event}
|
||||||
|
emptyOption={{ label: 'Select an option', value: '' }}
|
||||||
options={OBJECT_EVENT_TRIGGERS}
|
options={OBJECT_EVENT_TRIGGERS}
|
||||||
disabled={readonly}
|
disabled={readonly}
|
||||||
onChange={(updatedEvent) => {
|
onChange={(updatedEvent) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user