This is an automated email from the ASF dual-hosted git repository.

marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git


The following commit(s) were added to refs/heads/main by this push:
     new 6334bb1b fix
6334bb1b is described below

commit 6334bb1be3243677a6ded28416eaf2a7aed11b5b
Author: Marat Gubaidullin <ma...@talismancloud.io>
AuthorDate: Wed May 8 12:21:25 2024 -0400

    fix
---
 karavan-app/src/main/webui/src/editor/FileEditor.tsx | 8 +-------
 karavan-app/src/main/webui/src/util/useFormUtil.tsx  | 3 ---
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/karavan-app/src/main/webui/src/editor/FileEditor.tsx 
b/karavan-app/src/main/webui/src/editor/FileEditor.tsx
index 6dd240c3..e0a7a807 100644
--- a/karavan-app/src/main/webui/src/editor/FileEditor.tsx
+++ b/karavan-app/src/main/webui/src/editor/FileEditor.tsx
@@ -27,12 +27,6 @@ interface Props {
     projectId: string
 }
 
-const languages = new Map<string, string>([
-    ['sh', 'shell'],
-    ['md', 'markdown'],
-    ['properties', 'ini']
-])
-
 export function FileEditor(props: Props) {
 
     const [file] = useFileStore((s) => [s.file], shallow)
@@ -59,7 +53,7 @@ export function FileEditor(props: Props) {
     return (
         <>
             {showDesigner && <DesignerEditor projectId={props.projectId}/>}
-            {showEditor && <CodeEditor projectId={props.projectId}/>}
+            {showEditor && <CodeEditor/>}
         </>
     )
 }
diff --git a/karavan-app/src/main/webui/src/util/useFormUtil.tsx 
b/karavan-app/src/main/webui/src/util/useFormUtil.tsx
index 7b06e843..b675c8c9 100644
--- a/karavan-app/src/main/webui/src/util/useFormUtil.tsx
+++ b/karavan-app/src/main/webui/src/util/useFormUtil.tsx
@@ -1,11 +1,8 @@
 import React from 'react';
 import {
     Controller,
-    ControllerFieldState, ControllerRenderProps,
     FieldError,
-    FieldValues,
     UseFormReturn,
-    UseFormStateReturn
 } from "react-hook-form";
 import {
     Flex,

Reply via email to