From e98d91c49fad1858f678f36d1b702b0813e30974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20David=20Guti=C3=A9rrez?= Date: Fri, 20 Dec 2024 17:37:30 +0100 Subject: [PATCH] fix(dashboardSecurity): add type for securityPlatform variable --- .../wazuh-core/public/services/dashboard-security/types.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/wazuh-core/public/services/dashboard-security/types.ts b/plugins/wazuh-core/public/services/dashboard-security/types.ts index 9436cd9ec5..0239b78b09 100644 --- a/plugins/wazuh-core/public/services/dashboard-security/types.ts +++ b/plugins/wazuh-core/public/services/dashboard-security/types.ts @@ -1,5 +1,6 @@ import React from 'react'; import { BehaviorSubject } from 'rxjs'; +import { WAZUH_SECURITY_PLUGIN_OPENSEARCH_DASHBOARDS_SECURITY } from '../../../common/constants'; export interface DashboardSecurityServiceAccount { administrator: boolean; @@ -30,6 +31,9 @@ export interface DashboardSecurityServiceSetupDeps { } export interface DashboardSecurityService { + securityPlatform: + | typeof WAZUH_SECURITY_PLUGIN_OPENSEARCH_DASHBOARDS_SECURITY + | ''; account: DashboardSecurityServiceAccount; account$: BehaviorSubject; setup: (