From 70dcee32c07977d6406e4bd56a25b633f92a8cd4 Mon Sep 17 00:00:00 2001 From: Quinn James Date: Tue, 29 Aug 2023 14:09:46 +0000 Subject: [PATCH] Fixes #36708 - Repairs module stream details page breadcrumb bar. Adding updated testing snapshots and reverting accidentally modified tests. --- webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js | 3 +-- .../__tests__/__snapshots__/ModuleStreamDetails.test.js.snap | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js b/webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js index 5940076d75e..0714d2e6591 100644 --- a/webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js +++ b/webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js @@ -50,8 +50,7 @@ class ModuleStreamDetails extends Component { breadcrumbItems={[ { caption: __('Module Streams'), - onClick: () => - this.props.history.push('/module_streams'), + url: '/module_streams/', }, { caption: `${name} ${stream}`, diff --git a/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap b/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap index f2bba34951f..9d11a0d1861 100644 --- a/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap +++ b/webpack/scenes/ModuleStreams/Details/__tests__/__snapshots__/ModuleStreamDetails.test.js.snap @@ -109,7 +109,7 @@ exports[`Module stream details page rendering renders with module stream provide Array [ Object { "caption": "Module Streams", - "onClick": [Function], + "url": "/module_streams/", }, Object { "caption": "avocado latest",