From 5fd3e350eef0d105e076a09eea2cf63754322605 Mon Sep 17 00:00:00 2001 From: Maximiliano Ibarra Date: Mon, 8 May 2023 12:16:38 -0300 Subject: [PATCH] Change get wazuh version --- 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 46999de4473..03b98b8a598 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?.split('.').slice(0, 2).join('.') || 'current'; }, }; }