From 73765af71ae9bb72f6a83ae1f043b1c21110615c Mon Sep 17 00:00:00 2001 From: ThuF Date: Wed, 6 Dec 2023 18:20:06 +0200 Subject: [PATCH] [EDM] Fix on-save Transformer --- .../ide-entity/template/transformer-on-save.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/components/ide/ide-ui-entity/src/main/resources/META-INF/dirigible/ide-entity/template/transformer-on-save.js b/components/ide/ide-ui-entity/src/main/resources/META-INF/dirigible/ide-entity/template/transformer-on-save.js index 9db253d079d..1b13cf806ca 100644 --- a/components/ide/ide-ui-entity/src/main/resources/META-INF/dirigible/ide-entity/template/transformer-on-save.js +++ b/components/ide/ide-ui-entity/src/main/resources/META-INF/dirigible/ide-entity/template/transformer-on-save.js @@ -9,19 +9,19 @@ * SPDX-FileCopyrightText: 2023 SAP SE or an SAP affiliate company and Eclipse Dirigible contributors * SPDX-License-Identifier: EPL-2.0 */ -let transformer = require("ide-entity/template/transform-edm"); -let workspaceManager = require("platform/workspace"); +const transformer = require("ide-entity/template/transform-edm"); +const workspaceManager = require("platform/workspace"); -let workspace = __context.get('workspace'); -let project = __context.get('project'); -let path = __context.get('path'); +const workspace = __context.get('workspace'); +const project = __context.get('project'); +const path = __context.get('path'); -let modelPath = path.replace(".edm", ".model"); -let content = transformer.transform(workspace, project, path); +const modelPath = path.replace(".edm", ".model"); +const content = transformer.transform(workspace, project, path); if (content !== null) { - let bytes = require("io/bytes"); - input = bytes.textToByteArray(content); + const bytes = require("io/bytes"); + const input = bytes.textToByteArray(content); if (workspaceManager.getWorkspace(workspace) .getProject(project).getFile(path).exists()) {