Skip to content

Commit

Permalink
Fixes incorrect platform service usage (#73453) (#73510)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
Corey Robertson and elasticmachine authored Jul 31, 2020
1 parent 2a266ad commit 11d61c7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x-pack/plugins/canvas/public/state/reducers/workpad.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ export const workpadReducer = handleActions(
[setName]: (workpadState, { payload }) => {
platformService
.getService()
.coreStart.chrome.recentlyAccessed.add(
`${APP_ROUTE_WORKPAD}/${workpadState.id}`,
payload,
workpadState.id
);
.setRecentlyAccessed(`${APP_ROUTE_WORKPAD}/${workpadState.id}`, payload, workpadState.id);
return { ...workpadState, name: payload };
},

Expand Down

0 comments on commit 11d61c7

Please sign in to comment.