From db9adc021e61bb13a205f44b8794297caed52255 Mon Sep 17 00:00:00 2001 From: Maja Grubic Date: Wed, 9 Sep 2020 14:15:32 +0100 Subject: [PATCH] Fixing eslint --- .../dashboard/public/attribute_service/attribute_service.tsx | 4 ++-- .../visualizations/public/embeddable/visualize_embeddable.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/dashboard/public/attribute_service/attribute_service.tsx b/src/plugins/dashboard/public/attribute_service/attribute_service.tsx index e9a05485f82d1..dd9dea361a128 100644 --- a/src/plugins/dashboard/public/attribute_service/attribute_service.tsx +++ b/src/plugins/dashboard/public/attribute_service/attribute_service.tsx @@ -57,7 +57,7 @@ export interface AttributeServiceOptions { type: string, attributes: A, savedObjectId?: string - ) => Promise<{ id?: string } | { error: Error}>; + ) => Promise<{ id?: string } | { error: Error }>; customUnwrapMethod?: (savedObject: SimpleSavedObject) => A; } @@ -178,7 +178,7 @@ export class AttributeService< getInputAsRefType = async ( input: ValType | RefType, - saveOptions?: { showSaveModal: boolean; saveModalTitle?: string } | { title: string }, + saveOptions?: { showSaveModal: boolean; saveModalTitle?: string } | { title: string } ): Promise => { if (this.inputIsRefType(input)) { return input; diff --git a/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts b/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts index 0f4d28b57796a..59220aca3ed05 100644 --- a/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts +++ b/src/plugins/visualizations/public/embeddable/visualize_embeddable.ts @@ -469,7 +469,7 @@ export class VisualizeEmbeddable }; const saveModalTitle = this.getTitle() ? this.getTitle() - : i18n.translate('visualize.embeddable.placeholderTitle', { + : i18n.translate('visualizations.embeddable.placeholderTitle', { defaultMessage: 'Placeholder Title', }); // @ts-ignore