Skip to content

Commit

Permalink
correct operation names
Browse files Browse the repository at this point in the history
  • Loading branch information
ButteryCrumpet committed Feb 24, 2022
1 parent 34c86f4 commit b9817b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cloud/components/Automations/PipeBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ const SUPPORTED_EVENT_NAMES = Object.keys(supportedEvents).map((key) => {
})

const SUPPORTED_ACTION_OPTIONS = [
{ value: 'boost.doc.create', label: 'boost.doc.create' },
{ value: 'boost.doc.update', label: 'boost.doc.update' },
{ value: 'boost.docs.create', label: 'boost.docs.create' },
{ value: 'boost.docs.update', label: 'boost.docs.update' },
]

interface PipeBuilderProps {
Expand Down Expand Up @@ -114,14 +114,14 @@ const PipeBuilder = ({ pipe, onChange }: PipeBuilderProps) => {
</FormRowItem>
</FormRow>
<FormRow>
{action.value === 'boost.doc.create' && (
{action.value === 'boost.docs.create' && (
<CreateDocActionConfigurator
configuration={pipe.configuration.input}
onChange={updateConfig}
eventType={currentEvent}
/>
)}
{action.value === 'boost.doc.update' && (
{action.value === 'boost.docs.update' && (
<UpdateDocActionConfigurator
configuration={pipe.configuration.input}
onChange={updateConfig}
Expand Down

0 comments on commit b9817b7

Please sign in to comment.