From 8c49965df829b80173fed103870c694c65a23314 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Wed, 4 Aug 2021 12:05:02 +0200 Subject: [PATCH] Fix optional has package check/ --- projects/common/src/fm/services/package.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/src/fm/services/package.service.ts b/projects/common/src/fm/services/package.service.ts index 063f7fb..bd0c4fd 100644 --- a/projects/common/src/fm/services/package.service.ts +++ b/projects/common/src/fm/services/package.service.ts @@ -28,7 +28,7 @@ export class PackageService { hasPackage(id:string):boolean { if(!this.packages$[id]) return false; - return this.packages$[id].enabled == true; + return this.packages$[id].enabled ? this.packages$[id].enabled == true : true; } postItemPackageTask(item: IItem, task: IItemTask): Observable {