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'; }, }; }