>
+ updateActiveTabIndex
) {
return (
{
- setActiveTabIndex(index);
- setPanelOpen(true);
+ updateActiveTabIndex(index);
}}
data-cy={`${obj.name}-btn`}
>
diff --git a/platform/viewer/cypress/integration/volume/MPR.spec.js b/platform/viewer/cypress/integration/volume/MPR.spec.js
index d377a3fa3..19edfb965 100644
--- a/platform/viewer/cypress/integration/volume/MPR.spec.js
+++ b/platform/viewer/cypress/integration/volume/MPR.spec.js
@@ -27,9 +27,10 @@ describe('OHIF MPR', () => {
});
it('should render correctly the MPR', () => {
- cy.wait(1000);
+ cy.wait(250);
cy.get(':nth-child(3) > [data-cy="study-browser-thumbnail"]').dblclick();
+ cy.wait(250);
cy.get('[data-cy="MPR"]').click();
cy.get('[data-cy="thumbnail-viewport-labels"]').should('have.length', 3);
diff --git a/platform/viewer/src/appInit.js b/platform/viewer/src/appInit.js
index a130a41ee..dbe623b6c 100644
--- a/platform/viewer/src/appInit.js
+++ b/platform/viewer/src/appInit.js
@@ -16,6 +16,7 @@ import {
UserAuthenticationService,
errorHandler,
CustomizationService,
+ PanelService,
// utils,
} from '@ohif/core';
@@ -58,6 +59,7 @@ async function appInit(appConfigOrFunc, defaultExtensions, defaultModes) {
HangingProtocolService.REGISTRATION,
CineService.REGISTRATION,
UserAuthenticationService.REGISTRATION,
+ PanelService.REGISTRATION,
]);
errorHandler.getHTTPErrorHandler = () => {