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 30ae62d1 Fix application.properties empty in UI. Fixes #1614 (#1617)
30ae62d1 is described below

commit 30ae62d179ff8fca7fc8345d0337e66d729e2082
Author: giorgioamato-c4l <[email protected]>
AuthorDate: Tue Apr 14 19:13:01 2026 +0200

    Fix application.properties empty in UI. Fixes #1614 (#1617)
---
 .../webui/src/ui/features/project/developer/PropertiesEditor.tsx   | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git 
a/karavan-app/src/main/webui/src/ui/features/project/developer/PropertiesEditor.tsx
 
b/karavan-app/src/main/webui/src/ui/features/project/developer/PropertiesEditor.tsx
index 5419a8de..39d9bb91 100644
--- 
a/karavan-app/src/main/webui/src/ui/features/project/developer/PropertiesEditor.tsx
+++ 
b/karavan-app/src/main/webui/src/ui/features/project/developer/PropertiesEditor.tsx
@@ -51,6 +51,13 @@ export function PropertiesEditor() {
         }
     }, [code]);
 
+    useEffect(() => {
+        if (file && file.code !== code) {
+            setCode(file.code);
+        }
+    }, [file?.projectId, file?.name, file?.code]);
+
+
     function saveCode() {
         if (file && code && file.code !== code) {
             file.code = code;

Reply via email to