Skip to content

Commit

Permalink
Fix ts errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Jul 24, 2023
1 parent 37fb3e2 commit 6ff19a6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Side Public License, v 1.
*/

import { DashboardContainerInput, extractReferences } from '../../../../common';
import { DashboardContainerInput } from '../../../../common';
import { DashboardStartDependencies } from '../../../plugin';
import { DASHBOARD_CONTENT_ID } from '../../../dashboard_constants';
import { DashboardCrudTypes } from '../../../../common/content_management';
Expand All @@ -29,15 +29,15 @@ export const updateDashboardMeta = async (
) => {
const [dashboard] = await findDashboardsByIds(contentManagement, [id]);
if (dashboard.status === 'error') {
return '';
return;
}

const references =
savedObjectsTagging.updateTagsReferences && tags.length
? savedObjectsTagging.updateTagsReferences(dashboard.references, tags)
: dashboard.references;

return await contentManagement.client.update<
await contentManagement.client.update<
DashboardCrudTypes['UpdateIn'],
DashboardCrudTypes['UpdateOut']
>({
Expand Down

0 comments on commit 6ff19a6

Please sign in to comment.