diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/ActionSelect.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/ActionSelect.tsx index dc9ddd8..03eb121 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/ActionSelect.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/ActionSelect.tsx @@ -1,6 +1,7 @@ import React, { use, useEffect, useState } from 'react'; import {Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/molecules/shadcn/Select' import ActionTabs from './ActionTabs'; +import Image from 'next/image'; const ActionSelect = ({type,options,node}:any) => { @@ -24,7 +25,7 @@ const ActionSelect = ({type,options,node}:any) => {
{option.icon && } - {option.image && } + {option.image && {''}}
{option.actionType}
diff --git a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/Webhook.tsx b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/Webhook.tsx index ec67d1e..812b554 100644 --- a/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/Webhook.tsx +++ b/apps/dashboard-app/app/(dashboard)/workflows/editor/[editorId]/_components/action-forms/Webhook.tsx @@ -12,12 +12,11 @@ import { EditorContext } from '../../../../../../../providers/editor-provider'; import { useRouter } from 'next/navigation'; const Webhook = ({type,actionType,subActionType,node}:any) => { + const form = useForm() + const { editorId } = useParams() + const editor = useContext(EditorContext); + const router = useRouter(); if (subActionType == 'Internal Webhook'){ - const form = useForm() - const { editorId } = useParams() - const editor = useContext(EditorContext); - const router = useRouter(); - const onSubmit = async (data:any) => { const session = await getSession() const userId = session?.user?.id