fix: MPR initialization (#1062)
* fix: MPR initialization * small refactoring
This commit is contained in:
1 parent
2a52d9f05d
commit
b03739428f
4 files changed
+98
-43
No files matched your search
@@ -32,6 +32,11 @@ const ViewportGrid = function(props) {
|
||||
|
||||
const ViewportPanes = layout.viewports.map((layout, viewportIndex) => {
|
||||
const displaySet = viewportData[viewportIndex];
|
||||
|
||||
if (!displaySet) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const data = {
|
||||
displaySet,
|
||||
studies,
|
||||
@@ -108,6 +113,9 @@ ViewportGrid.propTypes = {
|
||||
setViewportData: PropTypes.func.isRequired,
|
||||
studies: PropTypes.array,
|
||||
children: PropTypes.node,
|
||||
defaultPlugin: PropTypes.string,
|
||||
numRows: PropTypes.number,
|
||||
numColumns: PropTypes.number,
|
||||
};
|
||||
|
||||
ViewportGrid.defaultProps = {
|
||||
|
||||
Reference in new issue
Block a user