Skip to content

Commit

Permalink
Fixing type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Jun 30, 2020
1 parent ad84e2e commit fc4d5cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 85 deletions.
2 changes: 1 addition & 1 deletion src/plugins/visualize/public/application/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { SharePluginStart } from 'src/plugins/share/public';
import { SavedObjectsStart, SavedObject } from 'src/plugins/saved_objects/public';
import { EmbeddableStart } from 'src/plugins/embeddable/public';
import { KibanaLegacyStart } from 'src/plugins/kibana_legacy/public';
import { ConfigSchema } from '../config';
import { ConfigSchema } from '../../config';

export type PureVisState = SavedVisState;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import React from 'react';
import { i18n } from '@kbn/i18n';

import { TopNavMenuData } from 'src/plugins/navigation/public';
import uuid from 'uuid';
import { VISUALIZE_EMBEDDABLE_TYPE } from '../../../../visualizations/public';
import {
showSaveModal,
Expand All @@ -33,7 +34,6 @@ import { unhashUrl } from '../../../../kibana_utils/public';
import { SavedVisInstance, VisualizeServices, VisualizeAppStateContainer } from '../types';
import { VisualizeConstants } from '../visualize_constants';
import { getEditBreadcrumbs } from './breadcrumbs';

interface TopNavConfigParams {
hasUnsavedChanges: boolean;
setHasUnsavedChanges: (value: boolean) => void;
Expand Down Expand Up @@ -240,7 +240,8 @@ export const getTopNavConfig = (
return;
}
const input = {
savedVis: { ...vis.serialize() },
...vis.serialize(),
id: uuid.v4(),
};
embeddable.getStateTransfer().navigateToWithEmbeddablePackage(originatingApp, {
state: { input, type: VISUALIZE_EMBEDDABLE_TYPE },
Expand Down
82 changes: 0 additions & 82 deletions src/plugins/visualize/public/kibana_services.ts

This file was deleted.

0 comments on commit fc4d5cb

Please sign in to comment.