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 8ea10eb Check integration only for yaml files
8ea10eb is described below
commit 8ea10ebcca269e1622a7fe5e6fb223840e1357e0
Author: Marat Gubaidullin <[email protected]>
AuthorDate: Tue Sep 20 11:12:36 2022 -0400
Check integration only for yaml files
---
karavan-app/src/main/webapp/src/projects/ProjectPage.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/karavan-app/src/main/webapp/src/projects/ProjectPage.tsx
b/karavan-app/src/main/webapp/src/projects/ProjectPage.tsx
index ce45398..cc913a8 100644
--- a/karavan-app/src/main/webapp/src/projects/ProjectPage.tsx
+++ b/karavan-app/src/main/webapp/src/projects/ProjectPage.tsx
@@ -435,7 +435,7 @@ export class ProjectPage extends React.Component<Props,
State> {
render() {
const {file, mode, tab} = this.state;
const isYaml = file !== undefined && file.name.endsWith("yaml");
- const isIntegration = file?.code &&
CamelDefinitionYaml.yamlIsIntegration(file.code);
+ const isIntegration = isYaml && file?.code &&
CamelDefinitionYaml.yamlIsIntegration(file.code);
const isProperties = file !== undefined &&
file.name.endsWith("properties");
const isLog = file !== undefined && file.name.endsWith("log");
const isCode = file !== undefined && (file.name.endsWith("java") ||
file.name.endsWith("groovy") || file.name.endsWith("json"));