Describe Your Question
- When I use setLayout change my grid,I get an error.
- version v3-stable
What steps can we follow to reproduce the bug?
in modes/longitudinal/src/index.js
onModeEnter:
const studySub = DicomMetadataStore.subscribe(
DicomMetadataStore.EVENTS.SERIES_ADDED,
(data) => {
const study = DicomMetadataStore.getStudy(data.StudyInstanceUID);
const layoutSub = HangingProtocolService.subscribe(
HangingProtocolService.EVENTS.NEW_LAYOUT,
() => {
if (['CT', 'MR'].includes(study.ModalitiesInStudy[0])) {
// 实现有bug
viewportGridService.setLayout({ numCols: 2, numRows: 2 });
}
layoutSub.unsubscribe();
}
);
studySub.unsubscribe();
}
);
I haven’t the findOrCreateViewport function.