From ccf78c40795eec1d3361d9f6cec283fd4e499bb4 Mon Sep 17 00:00:00 2001 From: Maximiliano Ibarra Date: Wed, 3 May 2023 08:38:50 -0300 Subject: [PATCH] Fixed slice on undefined --- src/core/public/injected_metadata/injected_metadata_service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/public/injected_metadata/injected_metadata_service.ts b/src/core/public/injected_metadata/injected_metadata_service.ts index 7566dc31a435..ea3ce11f6bad 100644 --- a/src/core/public/injected_metadata/injected_metadata_service.ts +++ b/src/core/public/injected_metadata/injected_metadata_service.ts @@ -153,7 +153,7 @@ export class InjectedMetadataService { }, getWazuhDocVersion: () => { - return this.state.wazuhVersion.slice(0, 3) || 'current'; + return this.state.wazuhVersion?.slice(0, 3) || 'current'; }, }; }