Skip to content

Commit

Permalink
Merge pull request #198 from epam/EPMUII-8814_wrongUrlCrashes
Browse files Browse the repository at this point in the history
EPMUII-8814
  • Loading branch information
oleksandr-zhynzher authored Jan 24, 2024
2 parents 7b4cd24 + fdd73df commit 0a4f060
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/FileReaders/OpenFromURLComponent.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState } from 'react';
import { UIButton } from '../Button/Button';
import UIModalUrl from '../Modals/ModalUrl';
import ModalUrl from '../Modals/ModalUrl';
import MriViwer from '../../engine/lib/MRIViewer';

export const OpenFromURLComponent = ({ cx }) => {
Expand All @@ -22,7 +22,7 @@ export const OpenFromURLComponent = ({ cx }) => {
return (
<>
<UIButton icon="link" text="Open From URL" cx={cx} handler={onModalUrlShow} />
{showModalUrl && <UIModalUrl stateVis={showModalUrl} onHide={onModalUrlHide} loadUrl={onClickLoadUrl} />}
{showModalUrl && <ModalUrl stateVis={showModalUrl} onHide={onModalUrlHide} loadUrl={onClickLoadUrl} />}
</>
);
};

0 comments on commit 0a4f060

Please sign in to comment.