From cb64c4894a83354d7f6b34fbda19b7052f03e855 Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 12 Jan 2023 16:33:30 +0300 Subject: [PATCH] lint fix --- src/plugin_state.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/plugin_state.ts b/src/plugin_state.ts index 39459b6..3aa8344 100644 --- a/src/plugin_state.ts +++ b/src/plugin_state.ts @@ -90,9 +90,13 @@ class PluginState { this.grafanaBackend.get(this.GRAFANA_PLUGIN_SETTINGS_URL); static updateGrafanaPluginSettings = async (data: UpdateGrafanaPluginSettingsProps, enabled = true) => - // @ts-ignore - // for some reason, there is no `options` argument in Grafana's public types for BackendSrv but it exists - this.grafanaBackend.post(this.GRAFANA_PLUGIN_SETTINGS_URL, { ...data, enabled, pinned: true }, { showSuccessAlert: false }); + this.grafanaBackend.post( + this.GRAFANA_PLUGIN_SETTINGS_URL, + { ...data, enabled, pinned: true }, + // @ts-ignore + // for some reason, there is no `options` argument in Grafana's public types for BackendSrv but it exists + { showSuccessAlert: false } + ); static createGrafanaToken = async () => { const baseUrl = '/api/auth/keys';