From 6db4f34c8f1a1dbf61e21078b6f8aa831fd95437 Mon Sep 17 00:00:00 2001 From: gvensan <4477169+gvensan@users.noreply.github.com> Date: Wed, 31 Jan 2024 20:26:51 +0530 Subject: [PATCH] Fixed a bug that dealds with add/remove subsciption while managing a queue --- package.json | 2 +- src/lib/queue.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9280436..1fea589 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stm", - "version": "0.0.25", + "version": "0.0.26", "description": "Solace Try-Me Command Line Tool", "keywords": [ "solace", diff --git a/src/lib/queue.ts b/src/lib/queue.ts index 3a053d2..aa975a0 100644 --- a/src/lib/queue.ts +++ b/src/lib/queue.ts @@ -55,7 +55,7 @@ const queue = (options: ManageClientOptions, optionsSource: any) => { if (!options.config && options.operation === 'UPDATE') { Object.keys(options).forEach((option) => { if (!option.startsWith('semp')) { - if (optionsSource[option] !== 'cli') + if (optionsSource[option] && optionsSource[option] !== 'cli') options[option] = undefined; } })