Merge pull request #2321 from OHIF/bugfix/idc-2006

bug(IDC-2006): Fix bug introduced with new logger service which broke debugger mailto functionality
This commit is contained in:
Igor Octaviano 2021-03-19 15:51:01 -03:00 committed by GitHub
commit 7c2bd9b76a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -1,5 +1,5 @@
import OHIF from '@ohif/core';
import { ToolbarButton, useLogger } from '@ohif/ui';
import { useLogger } from '@ohif/ui';
import {
save,
@ -97,7 +97,7 @@ export function getCommands(context, servicesManager, extensionManager) {
const { UIModalService } = servicesManager.services;
const WrappedDebugReportModal = function() {
const { state } = useLogger();
const { state: loggerState } = useLogger();
return (
<DebugReportModal
viewports={viewports}
@ -106,7 +106,7 @@ export function getCommands(context, servicesManager, extensionManager) {
extensionManager={extensionManager}
mailTo={state.mailTo}
debugModalMessage={state.debugModalMessage}
errors={state.errors}
errors={loggerState.errors}
/>
);
};

View File

@ -1,3 +1,3 @@
const state = { mailTo: undefined, message: undefined };
const state = { mailTo: undefined, debugModalMessage: undefined };
export default state;

View File

@ -41,7 +41,6 @@ let config = {};
if (window) {
config = window.config || {};
window.version = version;
}