OHIF-322: Fix tool settings to stop referencing function name because it breaks on minification (#1919)
This commit is contained in:
parent
4528ee9175
commit
9df57e7f7f
@ -196,7 +196,7 @@ export default function init({ servicesManager, configuration }) {
|
||||
|
||||
/* Add tools with its custom props through extension configuration. */
|
||||
tools.forEach(tool => {
|
||||
const toolName = tool.name.replace('Tool', '');
|
||||
const toolName = new tool().name;
|
||||
const externalToolsConfig = configuration.tools || {};
|
||||
const externalToolProps = externalToolsConfig[toolName] || {};
|
||||
const internalToolProps = internalToolsConfig[toolName] || {};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user