From 12b05086707a08250a8b6ae34417bf678252e86e Mon Sep 17 00:00:00 2001 From: simonegaffurini Date: Tue, 3 Dec 2024 18:34:34 +0100 Subject: [PATCH] fix initial value --- package-lock.json | 4 ++-- package.json | 2 +- src/actions/install/init.ts | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8c24630..42e5a47 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "trm-core", - "version": "6.1.13", + "version": "6.1.14", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "trm-core", - "version": "6.1.13", + "version": "6.1.14", "license": "MIT", "dependencies": { "@esm2cjs/normalize-url": "^8.0.0", diff --git a/package.json b/package.json index 390dd29..fe06fa7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "trm-core", - "version": "6.1.13", + "version": "6.1.14", "description": "TRM (Transport Request Manager) Core", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/actions/install/init.ts b/src/actions/install/init.ts index 82fe029..924f8e7 100644 --- a/src/actions/install/init.ts +++ b/src/actions/install/init.ts @@ -119,9 +119,10 @@ export const init: Step = { context.rawInput.installData.import = {}; } if(!context.rawInput.installData.installDevclass){ - context.rawInput.installData.installDevclass = { - replacements: [] - }; + context.rawInput.installData.installDevclass = {}; + } + if(!context.rawInput.installData.installDevclass.replacements){ + context.rawInput.installData.installDevclass.replacements = []; } if(!context.rawInput.installData.installTransport){ context.rawInput.installData.installTransport = {